-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (32 loc) · 1.07 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
language: python
python:
- "3.7"
env:
- DOCKER_COMPOSE_VERSION=1.27.4 RUNS=10 SERVICE=<your first service>
# - DOCKER_COMPOSE_VERSION=1.27.4 RUNS=10 SERVICE=<your second service>
- DOCKER_COMPOSE_VERSION=1.27.4 RUNS=20 SERVICE=all
- DOCKER_COMPOSE_VERSION=1.27.4 RUNS=200 SERVICE=<your first service>
# - DOCKER_COMPOSE_VERSION=1.27.4 RUNS=200 SERVICE=<your second service>
services:
- docker
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- sudo apt-get update
- sudo apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
- pip install -r requirements.txt
- pip install -r checkers/requirements.txt
- ./check.py list
- ./check.py validate
- ./check.py up
before_script:
- sleep 30
script:
- ./check.py check
after_script:
- ./check.py down
after_failure:
- ./check.py logs