-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 890 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
31
32
33
34
35
36
language: go
go:
- 1.6
sudo: required
services:
- docker
before_install:
- echo "Starting Docker Daemon "
- |
export TR_PULL_REQUEST="$TRAVIS_PULL_REQUEST" && export GIT_USER="$TRAVIS_REPO_SLUG"
USER_NAME="$(echo $GIT_USER | cut -d '/' -f 1)" && REPO_NAME="$(echo $GIT_USER | cut -d '/' -f 2)"
ip="$(ifconfig docker0 | grep "inet addr:" | awk '{print $2}' | cut -d ':' -f 2)"
port="$(ps -ef | grep docker | awk '{print $11}' | cut -d ':' -f 3)"
sudo stop docker
sudo docker daemon -H tcp://0.0.0.0:$port -H unix:///var/run/docker.sock >> dockerlogfile.log 2>&1 &
before_script:
- echo " IGNORE CREATING BASE IMAGE "
script:
- echo "Executing test scripts"
- make build
after_failure:
- |
echo "Click below links to view behave container log files"
cd $HOME/gopath/src/github.com/yeasy/cmonit
notifications:
on_success: always
on_failure: always