forked from Cloud-CV/EvalAI-ngx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 838 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
sudo: required
dist: trusty
language: node_js
addons:
chrome: stable
node_js:
- "9.5"
services:
- docker
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- export DEPLOY_DOMAIN=https://pr-${TRAVIS_PULL_REQUEST}-evalai.surge.sh
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
before_script:
- npm install -g --silent @angular/cli
script:
- ng lint
- ng test --watch=false --progress=false --code-coverage > test-log
- grep Executed test-log
- grep ERROR test-log
- grep LOGE test-log
- ng e2e
- ng build --prod
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash ./pr_deploy.sh
notifications:
email:
on_failure: always
on_success: change