-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (41 loc) · 772 Bytes
/
.travis.yml
File metadata and controls
49 lines (41 loc) · 772 Bytes
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
language: node_js
sudo: required
cache: yarn
yarn: true
directories:
- node_modules
node_js:
- 8
addons:
- chrome: stable
before_script:
- yarn global add @angular/cli
- yarn global add codecov
- yarn global add nyc
- yarn
script:
- yarn test
- yarn build:prod
- yarn install:server
- yarn build:server
before_deploy:
- mkdir prod
- cd prod
- cp -R ../dist/* .
- ls -lah
deploy:
- provider: heroku
api_key: $HEROKU_API_KEY
app: 'mooh-angular'
on:
branch: 'master'
skip_cleanup: true
- provider: heroku
api_key: $HEROKU_API_KEY_BRANCH_MATERIAL
app: 'mooh-angular-material'
on:
branch: 'material-design'
skip_cleanup: true
notification:
on_failure: change
on_success: change