1
0
Fork 0

Migrate CI to travis

- Add travis build file
- Use golang alpine image
- Clean scripts a little bit
- Disable CGO for test-integration >_<
This commit is contained in:
emile 2016-02-19 12:58:06 +01:00
parent 3a08655b06
commit 91b699fbe0
No known key found for this signature in database
GPG key ID: D808B4C167352E59
7 changed files with 63 additions and 19 deletions

30
.travis.yml Normal file
View file

@ -0,0 +1,30 @@
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
deploy:
provider: script
script: script/deploy.sh
on:
branch: master