forked from strongswan/strongMan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·35 lines (27 loc) · 947 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
32
33
34
35
sudo: required
services:
- docker
language: python
python:
- "3.4"
- "3.5"
env:
DOCKER_COMPOSE_VERSION: 1.11.1
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:
- pip install coveralls
- docker-compose build
before_script:
- docker-compose up -d
- sleep 5
script:
- docker-compose exec roadwarrior /bin/sh -c "cd /strongMan; ./runtests.py"
- docker-compose exec roadwarrior /bin/sh -c "cd /strongMan; python manage.py test strongMan.tests.integration_tests --settings=strongMan.settings.local;"
after_success:
- docker-compose exec roadwarrior cat /strongMan/.coverage > .coverage
- sed -i "s/\"\/strongMan/\"$(echo ${TRAVIS_BUILD_DIR} | sed 's/\//\\\//g')/g" .coverage
- coveralls