forked from algorand/js-algorand-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (41 loc) · 1019 Bytes
/
.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
dist: bionic
language: node_js
node_js:
- '12'
script:
- set -e
- if [ -n "$DOCKER_PASSWORD" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
- npm test
- make docker-test
jobs:
include:
- stage: Code Style
name: ESLint
script: npm run lint
- name: Prettier
script: prettier --check .
- stage: Testing
name: Compile test
script:
- npm run build
- npx tsc -p tests/compile
- name: Node test
- name: Chrome test
env: TEST_BROWSER=chrome
addons:
chrome: stable
- name: Firefox test
env: TEST_BROWSER=firefox
addons:
firefox: latest
- stage: Docs
name: GitHub Pages
if: branch = master
script: npm run docs
deploy:
provider: pages
skip_cleanup: true
keep_history: true
local_dir: docs
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
before_deploy: touch docs/.nojekyll