-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
93 lines (77 loc) · 2.68 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# ensure running in a container for fast boot, travis has these requirements:
sudo: false
dist: 'trusty'
# these are executed in order. each must pass for the next to be run
stages:
- precache # warm up cache for default Node.js version
- lint # lint code and docs
- test # all tests
- name: deploy
if: branch = dev AND type = push
# defaults
language: node_js
node_js: '10.15' # equivalent to node 10.15.x
env: COVERALLS_PARALLEL=true COVERAGE=true
cache:
directories:
- node_modules
jobs:
include:
- stage: precache
script: true
install:
- travis_wait npm i
- stage: lint
name: Lint contracts and frontend apps
install: pwd # override to avoid npm i again
script: npm run lint
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/apps-address-book
name: Address Book app tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/apps-allocations
name: Allocations app tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/apps-projects
name: Projects app tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/apps-dot-voting
name: Dot Voting app tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/apps-rewards
name: Rewards app tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: test
script: travis_wait 60 npm run coverage -- --scope=@autarklabs/templates-open-enterprise
name: Template tests and coverage report
install: npm run bootstrap
after_success: npm run coveralls
- stage: deploy
before_install:
- mkdir $HOME/.aragon
- openssl aes-256-cbc -K $encrypted_547551ebf6e1_key -iv $encrypted_547551ebf6e1_iv
-in shared/deployments/rinkeby_key.json.enc -out $HOME/.aragon/rinkeby_key.json -d
- ls $HOME/.aragon
install:
- travis_wait npm i -g @aragon/[email protected]
- npm run bootstrap
script: npm run publish:cd
notifications:
webhooks: https://coveralls.io/webhook
email:
recipients:
if: branch = dev
# Only build pushes to dev. All pull requests still build
branches:
only:
- dev