forked from tsuru/tsuru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (67 loc) · 2.34 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
59
60
61
62
63
64
65
66
67
language: go
install: true
sudo: required
addons:
apt:
packages:
- rsyslog
- xmlsec1
- rpm
go:
- 1.9
- master
env:
global:
- GOARCH=amd64
- GO_FOR_RELEASE=1.9
- IMAGE_NAME=tsuru/api
jobs:
fast_finish: true
allow_failures:
- go: master
include:
- stage: test
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
- stage: lint
script:
- while true; do echo .; sleep 30; done &
- if [ "${TRAVIS_EVENT_TYPE}" = "push" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then make lint; else make metalint; fi
- script: ./misc/check-handlers.sh
- script: ./misc/check-events.sh
- script: make check-api-doc
- stage: deploy
script:
- CGO_ENABLED=0 go build -ldflags "-X github.com/tsuru/tsuru/cmd.GitHash=`git rev-parse HEAD`" ./cmd/tsurud/
- curl https://raw.githubusercontent.com/tsuru/push-to-docker/master/push.sh | bash
- script: if [ -n "$TRAVIS_TAG" ]; then curl -sL https://raw.githubusercontent.com/tsuru/push-to-packagecloud/master/push.sh | PACKAGE_NAME=tsuru-server bash; fi
- stage: integration-check
script: ./misc/trigger-integration.sh
notifications:
email:
on_success: change
on_failure: always
slack:
rooms:
- secure: QJe4k18ACRUP4CDo245vBFu1hpVlcR3JPWjT7NL/vAE/Y5KDn5pNXIREPYIx9F/f8lvjF2RrQxjApeUujRh1PPt2Q53JulvaDCfM5a5SYnk5yoqu3ynlfqU4AOTDa6kzoJ3K4M9X8JhMpOtr3+IOPbwV88FjPvwviZN4p0L/0wc=
- secure: PUf33dfseOSrtp8Eoxx7cZoaR+O2zwJ3V++2k3zBXlhZRIntRdyoiZlax2NlKVGPgNMtT1WCQzufGVmvF1GVkkUC+c94wkEG8Qxzzwrcp476+VSfQSla95wFNuAjn0tuhqHommw9CncVUAF+2pfycPR/fmxDfgQaQTL3dsHy66E=
services:
- redis
- docker
- mongodb