-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy path.travis.yml
30 lines (23 loc) · 870 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo: required
language: go
# ~1 hour is too long to wait for an osx container, plus docker/dependencies
dist: trusty
go:
- 1.9
before_install:
- docker version
- ifconfig
- sudo -H pip install awscli
install:
- go get github.com/kardianos/govendor
- go get github.com/mitchellh/gox
- govendor sync
script:
- govendor test +local -v
after_success:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- 'if [ "$BRANCH" == "master" ]; then
./scripts/build.sh;
./scripts/upload.sh;
curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token ${TRAVIS_TOKEN}" -d "{\"request\":{\"branch\":\"master\"}}" https://api.travis-ci.org/repo/nanobox-io%2Fnanobox-installers/requests;
fi'