2016-02-19 11:58:06 +00:00
|
|
|
env:
|
|
|
|
REPO: $TRAVIS_REPO_SLUG
|
|
|
|
VERSION: v1.0.alpha.$TRAVIS_COMMIT
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo service docker stop
|
|
|
|
- sudo curl https://get.docker.com/builds/Linux/x86_64/docker-1.10.1 -o /usr/bin/docker
|
|
|
|
- sudo chmod +x /usr/bin/docker
|
|
|
|
- sudo service docker start
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- make validate
|
|
|
|
- make binary
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make test-unit
|
|
|
|
- make test-integration
|
|
|
|
- make crossbinary
|
|
|
|
- make image
|
|
|
|
|
2016-02-22 13:33:46 +00:00
|
|
|
after_success:
|
2016-02-22 14:01:00 +00:00
|
|
|
if ([ "$TRAVIS_BRANCH" = "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
|
|
|
echo "Deploying"
|
|
|
|
make deploy
|
2016-02-22 13:33:46 +00:00
|
|
|
else
|
|
|
|
echo "Skipping deploy"
|
|
|
|
fi
|