Skip to content

Instantly share code, notes, and snippets.

@making
Last active July 8, 2021 14:35
Show Gist options
  • Save making/6e8443f091fef615e60ea6733f62b5db to your computer and use it in GitHub Desktop.
Save making/6e8443f091fef615e60ea6733f62b5db to your computer and use it in GitHub Desktop.
unit test (Concourse)
# fly -t demo set-pipeline -p unit-test -c unit-test.yml
# fly -t demo unpause-pipeline -p unit-test
# fly -t demo trigger-job -j unit-test/unit-test --watch
resources:
- name: repo
type: git
source:
uri: https://github.com/making/hello-servlet.git
jobs:
- name: unit-test
plan:
- get: repo
trigger: true
- task: mvn-test
config:
platform: linux
image_resource:
type: docker-image
source:
repository: maven
inputs:
- name: repo
caches:
- path: repo/m2
run:
path: bash
args:
- -c
- |
set -ex
cd repo
rm -rf ~/.m2
ln -fs $(pwd)/m2 ~/.m2
mvn test -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment