-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
55 lines (46 loc) · 2.08 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
language: c
sudo: required
dist: trusty
env:
global:
- DOCKER_VERSION=17.11.0~ce-0~ubuntu
- DOCKER_EXPERIMENTAL=true
before_install:
- |
docker_setup () {
if [ ! -z "$DOCKER_EXPERIMENTAL" ]; then
printf '{"experimental":true}\n' | sudo tee /etc/docker/daemon.json
fi
INSTALLED_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}' | sed -e 's/-ce$//')
SIMPLIFIED_DOCKER_VERSION=$(echo $DOCKER_VERSION | sed -e 's/~ce.*//')
if [ "$INSTALLED_DOCKER_VERSION" != "$SIMPLIFIED_DOCKER_VERSION" ] ; then
apt-cache madison docker-ce
sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-ce=${DOCKER_VERSION}
else
sudo service docker restart
fi
}
export -f docker_setup
- docker_setup
- docker version
install:
- make pull
- make build
script:
- make qa
- make test
deploy:
provider: script
script: >-
docker login --username="${DOCKER_HUB_USERNAME}"
--password="${DOCKER_HUB_PASSWORD}" && make push
skip_cleanup: true
'on':
branch: master
after_success:
- docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
after_failure:
- docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
notifications:
slack:
secure: "bpjwkWe2bGp2n6UEid2uI52lBeD7FgjM91E+0xss5xh+/YASqnh2JSQ7lby1K+KQdXwpH8mGX/p1Z6q3v/WvkfPbrGIVB3OVI9sfUB0eqpSky1ca2x3cGlZl7C4irX6Q8svrEsu2hp64ULctwSMwwiJCgf97w/u2Bzje8SgBzI4jbdEcL0kmMer639LWdQqnd9zX4HGuuoKUyL0zU6VYGtwiGSDg4k+GW7M34v3J3JgOu/X2RMQ+axWVwjRhLSLkkQCBxDqKXLvkwlHv3JDrdXPZtcOX2ytjty1lg8bDjETk8npJQ+7SQzS5VTaM7y16L1004Jld0VS8vEDQO/5k8DuwUFWWafXWiQKvp/O8RfUIjA2eDwJBTL/OfFfI2RF2HHD9OAWDGt3Cqx9mgO/AdWrYN2iPQ/E51Dg0hkjdGP4RXZRbBC1TaT2WitDzdNZIsWr8wNviu+SVbwbfrqgkA7QOpFQTpxyV6JqFb4gnjmifp/1O/tnrNj/Vcl0j/uxC9NeZDY6HuuUGgY2rBWJ4mSf7agBdMwg7IhVX998qIB0LBUfsxmCjC3WFTkkeKafcIMZcUPK/pWwG+RddKmjWEJaR30j5Tm3OEAE89i4d9sZN7olIh7+8M4tt7BSQscUEYz419K3zXesE3oLf67Tea4uqVq61koZrgaBhoPI40SI="