mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-02 08:20:22 +01:00
34 lines
685 B
YAML
34 lines
685 B
YAML
language: node_js
|
|
node_js: node
|
|
|
|
# will run `npm install` automatically here
|
|
|
|
dist: xenial
|
|
|
|
# Deploying uses awscli and it uses Python.
|
|
# Xenial on Travis comes with Python 2 & 3 installed but 2 is default.
|
|
# Ensure pip3 is installed
|
|
# and make python3 and pip3 the defaults:
|
|
before_install:
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get install python3-pip
|
|
- alias python=python3
|
|
- alias pip=pip3
|
|
|
|
script:
|
|
- npm test
|
|
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
|
|
|
after_success:
|
|
- pip install --user awscli
|
|
- export PATH=$PATH:$HOME/.local/bin
|
|
- npm run deploy
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- public
|