1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 00:05:35 +01:00
docs/.travis.yml
2020-08-21 12:06:44 +02:00

32 lines
684 B
YAML

dist: xenial
language: node_js
node_js:
- '12'
# 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 upgraded.
before_install:
- sudo apt-get -qq update
- sudo apt-get install python3-pip
- sudo -H pip3 install --upgrade pip
- sudo -H pip3 install -U setuptools
script:
# will run `npm ci` automatically here
- npm test
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
after_success:
- pip3 install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- npm run deploy
notifications:
email: false
cache:
npm: true
directories:
- public