forked from experimental-platform/platform-configure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
17 lines (14 loc) · 887 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sudo: false
services:
- docker
install:
- 'curl -f https://raw.githubusercontent.com/experimental-platform/platform-configure-script/master/platform-configure.sh > scripts/platform-configure.sh'
- 'curl -L https://raw.githubusercontent.com/experimental-platform/build-scripts/master/build-go-tools.sh | bash'
- 'docker build -t quay.io/experimentalplatform/configure:${TRAVIS_BRANCH} .'
- 'mkdir "$(pwd)/mnt"'
script:
- 'docker run --rm -e TEMPLATES_ONLY=true quay.io/experimentalplatform/configure:${TRAVIS_BRANCH} bash -c "/prep.sh && /test.sh"'
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "$TRAVIS_BRANCH" != "master" ] && DEPLOY=true || DEPLOY=false'
- '[ "${DEPLOY}" = "true" ] && docker login -e none -u "$QUAY_USER" -p "$QUAY_PASS" quay.io'
- '[ "${DEPLOY}" = "true" ] && docker push quay.io/experimentalplatform/configure:${TRAVIS_BRANCH}'