forked from ProTip/aws-elk-billing
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
31 lines (25 loc) · 896 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
# The cnfig for travis CI
sudo: required
language: python
python:
- "2.7"
env:
global:
- DOCKER_VERSION=1.12.2-0~trusty
services:
- docker
before_install:
# list docker-engine versions
- sudo apt-cache madison docker-engine
# upgrade docker-engine to specific version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-ce
# reinstall docker-compose at specific version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > docker-compose
- sudo chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo sysctl -w vm.max_map_count=262144
script:
- sudo service docker restart
- sudo docker-compose -f docker-compose-test.yml up
- sudo docker-compose -f docker-compose-test-rerun.yml up