-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
57 lines (47 loc) · 1.28 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
language: python
sudo: required
dist: xenial
python: "3.5"
services:
- redis-server
- mongodb
addons:
apt:
sources:
- elasticsearch-2.x
- mongodb-3.4-precise
packages:
- unixodbc
- unixodbc-dev
- freetds-dev
- freetds-bin
- tdsodbc
- elasticsearch
- mongodb-org-server
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
before_install:
- sudo apt-get purge elasticsearch -y
- sudo apt-get install -y elasticsearch=2.4.6
- nvm install 6.10
- nvm use 6.10
- node --version
- npm install -g npm@3
- npm install -g grunt-cli
install:
- cd server && pip install -r dev-requirements.txt && cd ..
- cd client && npm install && cd ..
before_script: >
sudo sed -i 's\enabled: true\enabled: false\' /etc/mongod.conf
&& sudo service mongod restart
&& sudo service elasticsearch restart
script:
- cd server && flake8 && cd ..
- cd server && time behave ./features/ --format progress2 --logging-level ERROR && cd ..
- cd server && time nosetests && cd ..
- cd client && node --max_old_space_size=8192 `which grunt` build && cd ..
- cd server && python manage.py users:create -u test -p test -e test@localhost --admin && cd ..
after_script:
- rm .npm/*.lock