forked from jimmykane/quantified-self
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (45 loc) · 1.46 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
os:
- linux
sudo: required
language: node_js
node_js:
- "10.0.0"
addons:
chrome: stable
cache:
directories:
- node_modules
branches:
only:
- master
- develop
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- npm install -g @angular/cli
- npm install codecov -g
- npm install -g codeclimate-test-reporter
- openssl aes-256-cbc -K $encrypted_6e1429513935_key -iv $encrypted_6e1429513935_iv -in client-secret.json.enc -out client-secret.json -d
script:
- ng test --watch=false --code-coverage --progress
- npm run build-production
after_success:
- codecov
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && CODECLIMATE_API_HOST=$CODECLIMATE_API_HOST CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN_MASTER codeclimate-test-reporter < coverage/lcov.info
- test $TRAVIS_BRANCH = "develop" && test $TRAVIS_PULL_REQUEST = "false" && CODECLIMATE_API_HOST=$CODECLIMATE_API_HOST CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN_DEVELOP codeclimate-test-reporter < coverage/lcov.info
deploy:
provider: gae
skip_cleanup: true
keyfile: client-secret.json
project: quantified-self-173712
version: v1
default: true
on:
branch: master
notifications:
email:
on_failure: change
on_success: change
slack: quantified-self-io:gWxqdRGo14eo9MoBMtIPX6ME