2018-10-02 20:51:19 -07:00
|
|
|
sudo: required
|
2018-08-22 13:30:04 -07:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "lts/*"
|
|
|
|
- "node"
|
|
|
|
|
2018-10-02 20:51:19 -07:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-09-28 21:08:58 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/.npm
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
2018-11-01 14:53:23 -07:00
|
|
|
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/trusty/ llvm-toolchain-trusty-7 main"
|
|
|
|
- sudo apt-add-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main"
|
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install -y clang-7 --allow-unauthenticated
|
|
|
|
- clang-7 --version
|
|
|
|
|
2018-08-22 22:20:01 -07:00
|
|
|
script:
|
|
|
|
- npm run doc
|
|
|
|
- npm run flow
|
|
|
|
- npm run lint
|
2018-08-23 08:32:44 -07:00
|
|
|
- npm run codecov
|
2018-11-01 14:53:23 -07:00
|
|
|
- make -C examples/bpf-c-noop/
|
2018-10-02 20:51:19 -07:00
|
|
|
- npm run localnet:update
|
|
|
|
- npm run localnet:up
|
|
|
|
- npm run examples
|
|
|
|
- npm run test:live
|
|
|
|
- npm run localnet:down
|
2018-08-22 13:30:04 -07:00
|
|
|
|
2018-08-22 14:46:09 -07:00
|
|
|
before_deploy:
|
2018-08-22 22:11:33 -07:00
|
|
|
- rm -rf deploy
|
|
|
|
- mkdir -p deploy
|
|
|
|
- cp -r doc deploy/solanaWeb3Api-$TRAVIS_BRANCH
|
|
|
|
- cp lib/index.iife.js deploy/solanaWeb3.min.js
|
|
|
|
- ( cd deploy; tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH )
|
2018-08-22 13:53:13 -07:00
|
|
|
|
|
|
|
deploy:
|
2018-08-22 14:46:09 -07:00
|
|
|
- provider: pages
|
|
|
|
skip-cleanup: true
|
|
|
|
github-token: $GITHUB_TOKEN
|
|
|
|
local-dir: doc
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
node_js: "lts/*"
|
2018-09-28 21:08:58 -07:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script:
|
|
|
|
- npx semantic-release
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
node_js: "lts/*"
|
2018-08-22 14:46:09 -07:00
|
|
|
- provider: releases
|
|
|
|
skip-cleanup: true
|
|
|
|
file:
|
2018-08-22 22:11:33 -07:00
|
|
|
- deploy/solanaWeb3.min.js
|
|
|
|
- deploy/solanaWeb3Api.tgz
|
2018-08-22 14:46:09 -07:00
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
node_js: "lts/*"
|