-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (47 loc) · 1.84 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
python:
- "3.6"
node_js:
- ""
cache: pip
install:
- pip install -r python_client/requirements.txt
- pip install -r test/requirements.txt
- pip install -r server/backbone_server/REQUIREMENTS
- pip install -r upload/requirements.txt
- pip install coveralls
- npm install -g @angular/cli@7
- npm install "@types/node"@"^12.6.9" --no-optional --no-package-lock
- (cd client/sims-backbone/projects/malariagen/sims;rm package-lock.json)
- (cd client/sims-backbone/projects/malariagen/sims;npm install)
- (cd client/sims-backbone/projects/malariagen/sims;npm install typescript@">=3.4.0 <3.6.0" --no-optional --no-package-lock)
- (cd client/sims-backbone/projects/malariagen/sims;npm run build)
- (cd client/sims-backbone/projects/malariagen/sims;rm -rf node_modules)
- (cd client/sims-backbone/dist/malariagen/sims;npm link)
- (cd client/sims-backbone;rm package-lock.json)
- (cd client/sims-backbone;npm install)
script:
- (cd test;LOCAL_TEST=1 ./run.sh)
- (cd upload/test;LOCAL_TEST=1 ./run.sh)
- (cd client/sims-backbone;xvfb-run -a ng test @malariagen/sims --no-watch --no-progress --browsers=ChromeNoSandbox --code-coverage)
- (cd client/sims-backbone;xvfb-run -a ng test sims-backbone --no-watch --no-progress --browsers=ChromeNoSandbox --code-coverage)
# - (cd client/sims-backbone;xvfb-run -a ng e2e --no-progress --config=protractor-ci.conf.js)
services:
- postgresql
before_install:
- nvm install 11
- ./generate.sh noauth
before_script:
- export POSTGRES_USER="postgres"
- export POSTGRES_DB="backbone_test"
- database/rebuild.sh test clean
after_success:
- coverage combine test/.coverage upload/test/.coverage
- coveralls
dist: xenial
addons:
postgresql: "10"
apt:
packages:
- postgresql-10-postgis-2.4
chrome: stable