forked from nirgn975/angular-sanic-seed-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (42 loc) · 940 Bytes
/
.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
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: python
python:
- 3.6
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
- npm run build
- 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=120 --show-pep8 .
after_script:
- cd .. && codecov