forked from kartoza/django-bims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (53 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
sudo: required
language: python
services:
- docker
env:
global:
- ON_TRAVIS=True
- SECRET_KEY='tT\xd7\xb06\xf7\x9b\xff\x0fZL\xca\xca\x11\xefM\xacr\xfb\xdf\xca\x9b'
- DJANGO_SETTINGS_MODULE=core.settings.travis_docker
- ALL_FILE=all.travis.yml
- COMPOSE_PROJECT_NAME=bims
- COMPOSE_FILE=deployment/docker-compose.yml:deployment/docker-compose.override.yml
- MONITORING_ENABLED=False
matrix:
include:
- python: 2.7
env: PYTHON=2.7
addons:
hosts:
- uwsgi
before_install:
# install ansible
- sudo apt-get -y update
- sudo apt-get -y install libssl-dev systemd
- sudo pip install ansible
install:
- pip install coveralls
- pip install -r REQUIREMENTS-dev.txt
- pip install -U docker-compose
# setup files
- cp deployment/ansible/development/group_vars/${ALL_FILE} deployment/ansible/development/group_vars/all.yml
- make setup-ansible ANSIBLE_ARGS="--extra-vars='pycharm_version=\"\"' --skip-tags=development"
# show docker-compose.override.yml for debugging
- cat deployment/docker-compose.override.yml
- make build
- make up-travis
# Wait until database migrations ready
- until make sync; do echo "Retrying"; sleep 5; done
# Show container status
- docker-compose ps
- make gruntserver
script:
- make flake8-check
- make coverage-django-test-selenium ARGS="--log-level ERROR" CMD_ARGS="--verbosity 3"
after_success:
- coverage combine
# Replace parent directory to travis directory, because we are running
# coverage using docker mount
- sed -i 's/home\/web\/django_project/home\/travis\/build\/inasafe\/inasafe-django\/django_project/g' .coverage
- cat .coverage
- coveralls
email:
- dimas@kartoza.com