-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
98 lines (87 loc) · 2.05 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<<<<<<< HEAD
matrix:
include:
- language: python
python: 3.7
env:
- DB_URI="postgres://postgres:@localhost:5432/assp"
- DB_NAME="assp"
- DB_USER="postgres"
- DB_PASSWORD=""
- DB_PORT="5432"
- HOST="0.0.0.0"
- PORT="8000"
- LOG_LEVEL="info"
- ENV="development"
services:
- postgresql
before_script:
- cd server && pip install coverage pycodestyle python-dotenv
- pip install -r requirements.txt
- psql -c 'create database assp;' -U postgres
script:
- python -m unittest
- pycodestyle --show-source --max-line-length=120 --show-pep8 .
- language: node_js
node_js:
- v12
services:
- xvfb
addons:
chrome: stable
before_install:
- npm install -g npm@latest codecov
- export DISPLAY=:99.0
install:
- cd client && npm install
script:
- npm run lint
- npm run test
- npm run build
- npm run e2e
=======
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- "6"
- "7"
services:
- postgresql
cache:
npm: true
directories:
- client/node_modules
before_install:
- npm install -g npm@latest local-web-server codecov
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
# Client
- cd client && npm install
# Server
- cd ../server && pip install coverage pycodestyle
- pip install -r requirements.txt
- psql -c 'create database server;' -U postgres
script:
# Client
- cd ../client && npm run lint
- npm run test
- ng build --prod --aot
- cd dist && ws --port 4200&
- npm run e2e
# Server
- cd ../server && coverage run --source='.' manage.py test
- coverage xml
- pycodestyle --show-source --max-line-length=119 --show-pep8 .
- python manage.py test
after_script:
- cd .. && codecov
>>>>>>> b72a69f (Update dependencies (#20))