-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
44 lines (36 loc) · 1.11 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
git:
submodules: false
services:
- docker
language:
- python
python:
- "2.7"
before_install:
# remove old version of docker
- sudo apt-get remove -y docker-engine
# install last version of docker
- curl -sSL https://get.docker.com/ | sudo sh
- curl -L https://github.com/docker/compose/releases/download/1.4.2/docker-compose-`uname -s`-`uname -m` > docker-compose
# install compose
- sudo chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- pip install pytest
# replace the docker-compose.yml with the specific for the CI
- mv compose/ci.yml docker-compose.yml
# set containers as privileged to bypass Travis environment limitations
- 'sed -i "/image/a \ \ privileged: true" docker-compose.yml'
- 'sed -i "/build/a \ \ privileged: true" docker-compose.yml'
# start app containers
- docker-compose up -d db back front proxy > /dev/null
# init the test db
- make dbtest
script:
# start test containers
- docker-compose up -d hub
- docker-compose up -d firefox chrome
# start tests
- docker-compose run e2e
- py.test test/integration/http