forked from solana-labs/solana-web3.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (76 loc) · 1.95 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
dist: bionic
sudo: required
language: node_js
node_js:
- "lts/*"
# - "node" disabled due to flaky test failures
services:
- docker
cache:
directories:
- ~/.npm
branches:
only:
- master
notifications:
email: false
before_install:
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
- sudo apt-get update
- sudo apt-get install -y clang-7 --allow-unauthenticated
- sudo apt-get install -y openssl --allow-unauthenticated
- sudo apt-get install -y libssl-dev --allow-unauthenticated
- sudo apt-get install -y libssl1.1 --allow-unauthenticated
- clang-7 --version
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- PATH=$HOME/.cargo/bin:$PATH
- rustup --version
script:
- if [[ $TRAVIS_PULL_REQUEST != false ]]; then npx commitlint-travis; fi
- ls -l lib
- test -r lib/index.iife.js
- test -r lib/index.cjs.js
- test -r lib/index.esm.js
- npm run doc
- npm run defs
- npm run flow
- npm run lint
- npm run codecov
- make -C examples/bpf-c-noop/
- examples/bpf-rust-noop/do.sh build
- npm run localnet:update
- npm run localnet:up
- npm run test:live
- npm run localnet:down
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/*"