https://github.com/fourdollars/autopkgtest-resource
Concourse CI's autopkgtest-resource
https://github.com/fourdollars/autopkgtest-resource
autopkgtest concourse-ci-resource
Last synced: 28 days ago
JSON representation
Concourse CI's autopkgtest-resource
- Host: GitHub
- URL: https://github.com/fourdollars/autopkgtest-resource
- Owner: fourdollars
- License: mit
- Created: 2021-01-11T15:44:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T05:01:07.000Z (9 months ago)
- Last Synced: 2025-02-12T18:43:17.983Z (3 months ago)
- Topics: autopkgtest, concourse-ci-resource
- Language: Shell
- Homepage: https://fourdollars.github.io/
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/fourdollars/autopkgtest-resource/) [](https://opensource.org/licenses/MIT) [](https://www.gnu.org/software/bash/)  [](https://hub.docker.com/r/fourdollars/autopkgtest-resource/)
# autopkgtest-resource
[concourse-ci](https://concourse-ci.org/)'s autopkgtest-resourceautopkgtest against ubuntu:latest and ubuntu:{noble,jammy,focal} so far.
## Config
### Resource Type
```yaml
resource_types:
- name: resource-autopkgtest
type: registry-image
source:
repository: fourdollars/autopkgtest-resource
tag: latest
```or
```yaml
resource_types:
- name: resource-autopkgtest
type: registry-image
source:
repository: ghcr.io/fourdollars/autopkgtest-resource
tag: latest
```### Resource
* pastebin: Optional. Paste the complete log.
* webdav: Optional. Store all artifacts generated by autopkgtest.
* setup-commands: Optional. Setup commands for autopkgtest.
* env: Optional. Set --env=VAR=value for autopkgtest.
* isolation-machine: Optional. Disabled by default.```yaml
resources:
- name: autopkgtest
icon: bug-check
type: resource-autopkgtest
source:
pastebin: paste.debian.net
author: YourName
format: text
``````yaml
resources:
- name: autopkgtest
icon: bug-check
type: resource-autopkgtest
source:
webdav: https://webdav.some.where/project/folder
username: YourUserName
password: YourPassWord
``````yaml
resources:
- name: autopkgtest
icon: bug-check
type: resource-autopkgtest
source:
env:
DEBFULLNAME: "Shih-Yuan Lee (FourDollars)"
DEBEMAIL: "[email protected]"
setup-commands: |
#!/bin/sh
apt-get -q -q -y install software-properties-common
add-apt-repository -sy ppa:fourdollars/energy-tools
```### put step
* path: **Required**. Specify a path to run autopkgtest.
* debian: Optional. Specify an external Debian packaging folder.
* args: Optional. '--apt-upgrade' and '--quiet' by default.
* get_params: skip: Optional. Disabled by default. It won't download the log when it is enabled.
* get_params: max_depth: Optional. It will use '--max-depth=2' by default of `rclone copy` on WebDAV when it downloads the log.
* setup-commands: Optional. Setup commands for autopkgtest.
* env: Optional. Set --env=VAR=value for autopkgtest.
* dont_fail: Optional. The step will fail when autopkgtest failed by default.
* exit_status: Optional. Expected exit status of autopkgtest.
* isolation-machine: Optional. Disabled by default.```yaml
- put: autopkgtest
params:
path: SomeFolderInTask
args:
- --apt-upgrade
- --quiet
setup-commands: |
#!/bin/sh
apt-get -q -q -y install software-properties-common
add-apt-repository -sy ppa:fourdollars/energy-tools
dont_fail: true
get_params:
skip: true
``````yaml
- put: autopkgtest
params:
path: SomeFolderInTask
args:
- --apt-upgrade
- --quiet
setup-commands: |
#!/bin/sh
apt-get -q -q -y install software-properties-common
add-apt-repository -sy ppa:fourdollars/energy-tools
exit_status:
- 0
- 2
get_params:
skip: true
```## Example
```yaml
jobs:
- name: test
plan:
- get: libchewing
trigger: true
params:
depth: 1
- put: autopkgtest
params:
path: libchewingresource_types:
- name: resource-autopkgtest
type: registry-image
source:
repository: fourdollars/autopkgtest-resource
tag: latestresources:
- name: libchewing
icon: debian
type: git
source:
uri: https://salsa.debian.org/input-method-team/libchewing.git
branch: master
- name: autopkgtest
type: resource-autopkgtest
icon: bug-check
source:
pastebin: paste.debian.net
author: WhoIam
format: text
```