Last active
July 8, 2021 14:35
-
-
Save making/6e8443f091fef615e60ea6733f62b5db to your computer and use it in GitHub Desktop.
unit test (Concourse)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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