forked from aeternity/aepp-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (51 loc) · 1.25 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
dist: bionic
language: node_js
node_js: 12
branches:
only:
- master
- develop
services:
- docker
before_install:
- if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
export NODE_TAG=master;
export COMPILER_TAG=latest;
export FORCE_COMPATIBILITY=true;
fi
- if [[ $TRAVIS_BUILD_STAGE_NAME == "Integration tests" ]]; then
docker-compose up -d;
fi
install: npm ci --ignore-scripts
jobs:
include:
- stage: Tests
script:
- npm run lint
- npm run build
- npm run test:unit
- npm run report-coverage
- pyenv global 3.8
- pip3 install -r docs/requirements.txt
- mkdocs build
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: docs
on:
branch: develop
- stage: Integration tests
name: Channel, accounts
script:
- npm run test:integration:channel,accounts
- npm run report-coverage
- name: Contract, chain
script:
- npm run test:integration:contract,chain
- npm run report-coverage
- name: Else
script:
- npm run test:integration:else
- npm run report-coverage