-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.01 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
sudo: required
language: node_js
node_js:
- "lts/*"
# - "node" disabled due to flaky test failures
cache:
directories:
- ~/.npm
branches:
only:
- master
notifications:
email: false
before_install:
- source .travis/before_install.sh
script:
- source .travis/script.sh
before_deploy:
- rm -rf deploy
- mkdir -p deploy
- cp -r doc deploy/solanaWeb3Api-$TRAVIS_BRANCH
- ls -l lib
- cp lib/index.iife.js deploy/solanaWeb3.min.js
- ( cd deploy; tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH )
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: doc
on:
branch: master
node_js: "lts/*"
- provider: script
skip_cleanup: true
script:
- npx semantic-release
on:
branch: master
node_js: "lts/*"
- provider: releases
skip-cleanup: true
file:
- deploy/solanaWeb3.min.js
- deploy/solanaWeb3Api.tgz
api_key: $GITHUB_TOKEN
on:
tags: true
node_js: "lts/*"