-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
33 lines (33 loc) · 1.77 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
services:
- docker
branches:
only:
- master
install:
- env | grep 'DEBUG\|MYSQL\|SHINY\|KEY\|MAIL\|ADMINS\|TOKEN\|TRAVIS' >> .env
- docker-compose pull
- docker-compose build
- docker-compose up -d
- docker-compose run --no-deps --rm uwsgi sh -c 'mkdir -p /var/uwsgi/shiny/media'
- docker-compose run --no-deps --rm uwsgi sh -c 'chmod -R g+rwx media && chmod -R g+rwx media/thumbnails/'
- docker-compose run --no-deps --rm uwsgi sh -c 'chgrp -R www-data .'
- docker-compose ps
script:
- docker-compose run --no-deps --rm --volume $PWD/.git:/var/uwsgi/.git uwsgi /root/wait-for-mysql.sh
coverage run --source='.' -m py.test
after_script:
- docker-compose run --rm --volume $PWD/.git:/var/uwsgi/.git uwsgi coveralls
env:
global:
- DEBUG=False
- MYSQL_ROOT_PASSWORD=mysql_password
- SHINY_DATABASE=shiny_database
- SHINY_USER=shiny_user
- SHINY_PASSWORD=shiny_password
- SECRET_KEY=shiny_secret_key
- EMAIL_HOST=example.email.com
- EMAIL_HOST_USER=email_user
- EMAIL_HOST_PASSWORD=email_password
- ADMINS=example:[email protected],admin:[email protected]
- secure: oO6vVh9JQ59uPwoaYpPnuxtdJnZNkDhlpZGTcSDqEpzIu7ymdApcGgIbpQ3wAXnssye0th4xNq9X0FddMkcv6i4uB6VDh/c7ezbc3YYu1HGVnUlJfGPsnEvm2Jd+OqtT6zmjbBzwIuQscxpa4c8/h86RSIGlknMIT/Fp4AvJ9bcOMBzCHy7RjyD3RG3tYMtZHTDTgHykvU1usushtySdQwVdsm+RPaT1QzKEwTHQOYFDPdV6pitLIrMaTJjVAoxP7l20SudMJJ4sMSkuStJOytxi4c3T5B5O4fMIQWDhey2veOg8HQz6sAVgWrtuKMPoDJEVLpQQOwcWtRA66NntyihnJmRYyRApqlEGPZl2kmK7PD6j8luV7L0lRiMDQFnXwC2p2bzPqKaAyYYWKcZd/FNf5tJfNyQoh8Jo9c35cqonwQGcE1rB0Um12p0qWWp0OJ1VE4QEoChlMHV7g4GGLmBv0IRvHtX7odA5eXpBpXlk11UakF7UMqy2xc7k22t0wmjoXtm1HCcDpRtYEsyr6kWmweDWyEnnjjCc8LANRQ3DbDKdJzK2XLj5bSrxZUaGWivpSez7Ni0FxjjOwlXdpAnE6bcnVS697M6ECCyu55Vf1Uq9Vbb+V+UKuMOUx7HuMKm2kMaYX0yiyU+uiaLpfDra6z8mocr0leGY49mjqxs=