-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (48 loc) · 1.44 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
language: node_js
node_js:
- "node"
sudo: required
dist: trusty
notifications:
email: false
env:
global:
- CC_TEST_REPORTER_ID=a755d3a7a40d2f0b27f4e56011fcce2f6a9014b46d0ce01308ffa91462819c66
addons:
chrome: stable
code_climate:
repo_token:
secure: a755d3a7a40d2f0b27f4e56011fcce2f6a9014b46d0ce01308ffa91462819c66
cache:
directories:
- $HOME/.npm
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm i -g npm
- npm ci
install:
# install o code climate
# - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
# - chmod +x ./cc-test-reporter
# - ./cc-test-reporter before-build
- npm install
# install codecov and coveralls
- npm install -g codecov
- npm install -g coveralls
- npm install -g codeclimate-test-reporter
before_script:
script:
- npm run travis-ci
- ng build --aot --prod --base-href "https://netstart.github.io/parapasa/" # https://github.com/angular/angular-cli/wiki/stories-github-pages
- codecov
- cat ./coverage/parapasa/lcov.info | ./node_modules/coveralls/bin/coveralls.js
# - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- codeclimate-test-reporter < ./coverage/parapasa/lcov.info
-
# call script for deploying of produced artifacts
- bash ./.travis-deploy-gh-pages.sh #run only on master
#after_script:
# on:
# branches: master