1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/.travis.yml

32 lines
684 B
YAML
Raw Normal View History

2019-04-24 11:09:51 +02:00
dist: xenial
2018-11-07 12:24:53 +01:00
language: node_js
2019-04-24 11:09:51 +02:00
node_js:
- '12'
2018-11-07 12:24:53 +01:00
2019-03-11 13:39:53 +01:00
# 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.
2019-03-11 13:39:53 +01:00
before_install:
- sudo apt-get -qq update
- sudo apt-get install python3-pip
- sudo -H pip3 install --upgrade pip
2020-08-21 12:06:44 +02:00
- sudo -H pip3 install -U setuptools
2019-03-11 13:39:53 +01:00
2018-11-07 12:24:53 +01:00
script:
2019-06-07 14:46:02 +02:00
# will run `npm ci` automatically here
2018-11-10 00:31:47 +01:00
- npm test
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
2018-11-07 12:24:53 +01:00
2018-11-16 11:12:28 +01:00
after_success:
- pip3 install --user awscli
2018-11-16 11:19:43 +01:00
- export PATH=$PATH:$HOME/.local/bin
2018-11-16 11:12:28 +01:00
- npm run deploy
2018-11-07 12:24:53 +01:00
notifications:
2018-11-10 00:31:47 +01:00
email: false
2018-11-07 12:24:53 +01:00
cache:
2019-06-07 14:46:02 +02:00
npm: true
2018-11-10 00:31:47 +01:00
directories:
- public