forked from tsuru/tsuru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (58 loc) · 1.8 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: go
sudo: required
install: true
go:
- 1.8.x
- master
env:
global:
- GOARCH=amd64
- GO_FOR_RELEASE=1.8
- IMAGE_NAME=tsuru/api
addons:
apt:
packages:
- rsyslog
- xmlsec1
- rpm
before_script:
- rsyslogd &
- sleep 1
before_install:
- git fetch --unshallow || true
- sleep 15
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
- sudo ifconfig
- sudo sysctl -a | grep ipv6.conf
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- sudo apt-get -qq update
- sudo apt-get install -y mongodb-org
- sudo service mongod start || true
- service mongod status
- go env && pwd
script:
- make test
- while true; do echo .; sleep 30; done &
- if [ "${TRAVIS_EVENT_TYPE}" = "push" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then make lint; else make metalint; fi
- ./misc/check-handlers.sh
- ./misc/check-events.sh
- make check-api-doc
- CGO_ENABLED=0 go build -ldflags "-X github.com/tsuru/tsuru/cmd.GitHash=`git rev-parse HEAD`" ./cmd/tsurud/
after_success:
- curl https://raw.githubusercontent.com/tsuru/push-to-docker/master/push.sh | bash
- test -n "$TRAVIS_TAG" && curl -sL https://raw.githubusercontent.com/tsuru/push-to-packagecloud/master/push.sh | PACKAGE_NAME=tsuru-server bash
notifications:
email:
on_success: change
on_failure: always
slack:
secure: QJe4k18ACRUP4CDo245vBFu1hpVlcR3JPWjT7NL/vAE/Y5KDn5pNXIREPYIx9F/f8lvjF2RrQxjApeUujRh1PPt2Q53JulvaDCfM5a5SYnk5yoqu3ynlfqU4AOTDa6kzoJ3K4M9X8JhMpOtr3+IOPbwV88FjPvwviZN4p0L/0wc=
services:
- redis
- docker
- mongodb
matrix:
allow_failures:
- go: master