forked from fossasia/susper.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·43 lines (36 loc) · 897 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
# Using a sudo enabled, Linux trusty distribution, VM
sudo: required
dist: trusty
# versions of node to use
language: node_js
node_js:
- 6
# Running javascript tests in browser
before_install:
#set CHROME_BIN as chromium-browser
- export CHROME_BIN=chromium-browser
#set up a fake DISPLAY
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Build a production build of the project
before_script:
- ng build --prod --build-optimizer
# Check for coverage, and linting
script:
- ng test --single-run --code-coverage --reporters=coverage-istanbul
- ng lint
# Notify codecov, deploy to surge
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash ./pr_deploy.sh
- bash ./deploy.sh
# enable node_modules dir to avoid re-download everytime
cache:
bundler: true
directories:
- node_modules
#specify branches to process
branches:
only:
- master
- development