forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (33 loc) · 1.15 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
sudo: required
services:
- docker
branches:
only:
- master
env:
- TARGET="56"
- TARGET="70"
- TARGET="71"
before_install:
# list docker-engine versions, usefull to update the docker engine on travis and trusty
#- apt-cache madison docker-engine
# update docker engine to the desired version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=1.13.1-0~ubuntu-trusty
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# check running "docker engine" and "docker-compose" version on travis
- docker --version
- docker-compose --version
before_script:
- sudo sysctl -w vm.max_map_count=262144
script:
- make tests TARGET=$TARGET
after_script:
- cat /var/log/elasticsearch/*.log
- cat /var/log/nginx/*.log
- sudo rm composer.lock && sudo composer require satooshi/php-coveralls dev-master --no-ansi --no-progress --no-interaction
after_success:
- bash <(curl -s https://codecov.io/bash)
- vendor/bin/coveralls -v