-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (39 loc) · 1.03 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
language: python
python: "3.6"
dist: xenial
sudo: required
git:
depth: 3
branches:
only:
- master
addons:
apt:
packages:
- rabbitmq-server
service:
- postgresql
- rabbitmq
install:
- pip3 install -r requirements.txt
before_script:
- cd backend
- cp backend/config.example.py backend/config.py
- env PYTHONOPTIMIZE=1 celery worker -l info -A backend -Q cobra_results &> celery_backend.log &
- (cd cobra_wrapper/remote &&
env PYTHONOPTIMIZE=1 celery worker -l info -A cobra_computation -Q cobra_feeds &> celery_computation.log &)
- psql -c "create database igm_backend;" -U postgres
- psql -c "echo \"CREATE USER igem WITH PASSWORD 'igem';\" | psql" -U postgres
- echo "STATIC_ROOT = '/tmp/static'" >> backend/settings.py
script:
- flake8
- python3 manage.py fix_pymysql
- python3 manage.py migrate
- python3 manage.py migrate_to_psql
- python3 manage.py collectstatic
after_script:
- kill %1 %2
- cat celery_backend.log
- cat cobra_wrapper/remote/celery_computation.log
cache:
pip: true