-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (63 loc) · 1.82 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
sudo: required
dist: trusty
language: node_js
node_js:
- '8'
python:
- "2.7"
notifications:
email: false
slack: 353swe:TBr27Dyzfxr9mmz1qYaWjJiv
cache:
directories:
- node_modules
env:
global:
- NODE_ENV=development
before_install:
- export COMMITTER_EMAIL="$(git log -1 $TRAVIS_COMMIT --pretty="%cE")"
- export AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
after_failure: python scripts/travis/failed_build.py "$STAGE_NAME" "$TRAVIS_COMMIT_MESSAGE" "$TRAVIS_BRANCH" "$AUTHOR_NAME"
jobs:
include:
- stage: test
install:
- npm install
- sudo pip install --upgrade pip
- sudo pip install unirest
before_script:
- export STAGE_NAME=test
- npm run testrpc
- npm run compile
script:
- python scripts/travis/exec_and_report.py lint
- python scripts/travis/exec_and_report.py test
- stage: code-coverage
if: branch = master
install:
- sudo pip install --upgrade pip
- sudo pip install unirest
- sudo pip install bs4
before_script:
- export STAGE_NAME=coverage
- (while sleep 592; do echo "STA BONO TRAVIS"; done;) &
- npm run rpcov
- npm run compile
script:
- python scripts/coverage/js-coverage.py
- python scripts/coverage/solidity-coverage.py
after_success:
- npm run merge-coverage
- cat report.lcov | COVERALLS_REPO_TOKEN=$repo_token COVERALLS_SERVICE_NAME=travis-pro ./node_modules/.bin/coveralls
- stage: deploy-to-production
if: branch = master
before_script: export STAGE_NAME=deploy
script:
- npm run testrpc
- npm run migrate
- npm run build-prod
deploy:
provider: surge
project: ./dist/
domain: fake.marvin.surge.sh
skip_cleanup: true