-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
67 lines (66 loc) · 3.03 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: c
dist: trusty
sudo: required
env:
global:
- DOCKER_VERSION=17.11.0~ce-0~ubuntu
- DOCKER_EXPERIMENTAL=true
- MAKEFLAGS="--jobs=2 --max-load=4 --always-make --no-print-directory"
matrix:
- IMAGE_NAME=moco
- >-
IMAGE_NAME=php-docker
PHP_VERSION=7.2.0
DOCKER_CONTAINER_VERSION=stable
- >-
IMAGE_NAME=php PHP_VERSION=7.1.13
PHP_SHA256=1a0b3f2fb61959b57a3ee01793a77ed3f19bde5aa90c43dcacc85ea32f64fc10
GPG_KEY_LIST="A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
528995BFEDFBA7191D46839EF9BA0ADA31CBD89E
1729F83938DA44E27BA0F4D3DBDB397470D12172"
- >-
IMAGE_NAME=php PHP_VERSION=7.2.1 LATEST_TAG=next
PHP_SHA256=6c6cf82fda6660ed963821eb0525214bb3547e8e29f447b9c15b2d8e6efd8822
GPG_KEY_LIST="1729F83938DA44E27BA0F4D3DBDB397470D12172
B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F"
PHP_URL='https://secure.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror'
PHP_ASC_URL='https://secure.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror'
- IMAGE_NAME=netutils
- IMAGE_NAME=flow FLOW_VERSION=0.59.0 OCAML_VERSION=4.03.0
- IMAGE_NAME=rabbitmq RABBITMQ_VERSION=3.6.12
before_install:
- >
if [ ! -z "${DOCKER_EXPERIMENTAL}" ] ; then
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
fi
if [ "$(docker version -f '{{.Server.Version}}')|sed -e 's/-ce.*$//'" !=
"$(echo ${DOCKER_VERSION}|sed -e 's/~ce.*$//')" ] ; 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
install:
- 'make -C ${IMAGE_NAME} pull'
script:
- 'make -C ${IMAGE_NAME} build'
- 'make -C ${IMAGE_NAME} test'
after_success:
- 'make -C ${IMAGE_NAME} tag'
- docker image ls
deploy:
provider: script
script: >-
docker login --username="${DOCKER_HUB_USERNAME}"
--password="${DOCKER_HUB_PASSWORD}" && make -C ${IMAGE_NAME} push
skip_cleanup: true
'on':
branch: master
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="
email:
recipients:
- ci@ubirak.org
on_success: change
on_failure: change