2020-03-05 13:37:00 -08:00
|
|
|
dist: bionic
|
2018-10-02 20:51:19 -07:00
|
|
|
sudo: required
|
2018-08-22 13:30:04 -07:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "lts/*"
|
2020-05-19 06:28:32 -07:00
|
|
|
# - "node" disabled due to flaky test failures
|
2018-08-22 13:30:04 -07:00
|
|
|
|
2018-09-28 21:08:58 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/.npm
|
|
|
|
|
2019-06-22 21:04:54 -07:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2018-09-28 21:08:58 -07:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
2018-11-01 14:53:23 -07:00
|
|
|
before_install:
|
2020-06-14 22:01:13 -07:00
|
|
|
- source .travis/before_install.sh
|
2018-11-01 14:53:23 -07:00
|
|
|
|
2018-08-22 22:20:01 -07:00
|
|
|
script:
|
2020-06-14 22:01:13 -07:00
|
|
|
- source .travis/script.sh
|
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
|
2019-05-28 11:03:34 -07:00
|
|
|
- ls -l lib
|
2018-08-22 22:11:33 -07:00
|
|
|
- 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/*"
|
2021-09-13 14:37:18 -07:00
|
|
|
|
2018-09-28 21:08:58 -07:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script:
|
|
|
|
- npx semantic-release
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
node_js: "lts/*"
|
2021-09-13 14:37:18 -07:00
|
|
|
|
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/*"
|