Created
August 9, 2018 20:58
-
-
Save roberthamel/9958eaff27020c758c09a5ac0cc1e2e8 to your computer and use it in GitHub Desktop.
Let's Refactor
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
# ci/credentials.yml | |
gitRepository: https://github.com/<YOUR-GITHUB-USERNAME>/product-service-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
# ci/pipeline.yml | |
--- | |
resources: | |
- name: source-code | |
type: git | |
check_every: 10s | |
source: | |
uri: ((gitRepository)) | |
branch: master | |
jobs: | |
- name: test | |
plan: | |
- get: source-code | |
trigger: true | |
- task: test | |
file: source-code/ci/tasks/test.yml |
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
# ci/tasks/test.yml | |
--- | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: | |
repository: openjdk | |
tag: 8 | |
inputs: | |
- name: source-code | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
cd source-code | |
ls -lah | |
./gradlew test | |
echo "all tests pass" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment