Skip to content

Instantly share code, notes, and snippets.

@roberthamel
Created August 9, 2018 21:15
Show Gist options
  • Save roberthamel/eeaa8cd40332526bdd869faa5c091a57 to your computer and use it in GitHub Desktop.
Save roberthamel/eeaa8cd40332526bdd869faa5c091a57 to your computer and use it in GitHub Desktop.
More Refactoring
# ci/credentials.yml
gitRepository: https://github.com/<YOUR-GITHUB-USERNAME>/product-service-concourse
# 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
#!/bin/bash
# ci/scripts/test.sh
set -eu
pushd source-code
ls -lah
./gradlew test
popd
echo "all tests pass"
# ci/tasks/test.yml
---
platform: linux
image_resource:
type: docker-image
source:
repository: openjdk
tag: 8
inputs:
- name: source-code
run:
path: source-code/ci/scripts/test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment