-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
31 lines (26 loc) · 933 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
language: python
sudo: required
install: true
services:
- docker
before_install:
- ulimit -s 1082768
# Last version of docker
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
# Puppenc specific
- docker pull puppenc/api:v2
- docker pull mysql:5.6
- cp tests/config.py.sample config.py
- docker-compose -f tests/docker-compose.yml up -d
# Need it...
- sleep 30
- docker-compose -f tests/docker-compose.yml exec puppenc-api-tests python shell.py --setup
after_failure:
- docker-compose -f tests/docker-compose.yml logs
after_success:
- docker-compose -f tests/docker-compose.yml down
script:
- docker-compose -f tests/docker-compose.yml exec puppenc-api-tests resttest.py --url=http://127.0.0.1:5000 tests/tests.yaml --log info