-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
61 lines (49 loc) · 1.69 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
language: node_js
dist: xenial
node_js:
- '10'
services:
- docker
install: skip
stages:
- Unit Tests
- Integration tests
- Deploy
_integration_test: &_integration_test
install:
- npm install
- (cd integration-tests && npm install)
before_script: (cd integration-tests && npm run $NETWORK_NAME)
script: npm run test:$NETWORK_NAME
jobs:
include:
- stage: Unit Tests
name: Unit Tests
install: npm install
script:
- npm run lint
- npm run build
- npm run test:unit
- stage: Integration tests
name: Integration tests on ganache
env: NETWORK_NAME=ganache
<<: *_integration_test
- name: Integration tests on BESU
env: NETWORK_NAME=besu
<<: *_integration_test
- stage: Deploy
script: 'true'
deploy:
provider: npm
email: $NPMEMAIL
api_key:
secure: "g+q9JHsddgam1BfBSYSAukps2Xg6PJlNsYlYNlJvHall4cLaAau96J+PQkKVLfvszP6RF/M7R01E6q2ffFYM7h+NQvCfEqNVHVHPXe7vYhFbE6nbDtfv2knheEV+tX4BNuHYniWVBPUoYlC7XMGDrr+cI8ApW0FYm/FOQfAetzwI3aww77RAOci1uaR5IFM9Cu3ZLjF9afe6K4qM80EMR0lH3kz6aUL/N9zhA4NjXJJuvz7sdCHo4tMUGDYkNYgwWYT15U1V5CnJGLU51srjyUfg7Q3srFVaOmEjqZ12+gkBO97trMZ3Kub92MHiCqBoMQP9LY0nDM5HLs6mVrpjwU06z+QzLouvdiqQO8wNlLB8eRxTFpHELUzzxhANJekYHQBTVrfqAgnRmlcBug6YmR/Cr7viRjzC81IuyrH9+U1/PIo6mLDfyLUyHVBjJVlFGl5ccrcgl+++JqnEA62cJze9Y5wnv+qa5qzJg4FhCOH0x904/tRhfKUPwBoNLGqpIxOTNd5rjMCkVVFi5a5XgYd/DZ16RIjN81Kr/peK5WKtjf9C2fxmQQKdosJEdN3OvmY8SkFX0ZiuOcsVLy1/GjqeQXOjz1smAoq/Z0yrdMcT28xRuETubKQuKzS3Xdi6n9gUnlXf8URcajEKyiTpWwcJAHAimTvNWwZEmBq5wIs="
tag: latest
on:
branch: master
tags: true
notifications:
email:
on_failure: change
cache:
npm