55 lines
828 B
YAML
55 lines
828 B
YAML
sudo: required
|
|
|
|
dist: bionic
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
- 12
|
|
|
|
python:
|
|
- "3.7"
|
|
|
|
services:
|
|
- docker
|
|
- xvfb
|
|
|
|
before_install:
|
|
- |
|
|
if [[ $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|rrt\/.*)$ ]]; then
|
|
export E2E_TAG="${TRAVIS_BRANCH//\//_}"
|
|
else
|
|
export E2E_TAG="latest"
|
|
fi
|
|
echo "E2E_TAG = $E2E_TAG"
|
|
|
|
install:
|
|
- npm install
|
|
|
|
addons:
|
|
chrome: stable
|
|
|
|
env:
|
|
global:
|
|
- BASE_HREF="/"
|
|
- API_URL="http://db:5000/v1.0"
|
|
- IRB_URL="http://pb:5001"
|
|
|
|
script:
|
|
- npm run ci
|
|
|
|
deploy:
|
|
provider: script
|
|
script: bash ./deploy.sh
|
|
skip_cleanup: true
|
|
on:
|
|
all_branches: true
|
|
condition: $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|master|rrt\/.*)$
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|
|
recipients:
|
|
- dan@sartography.com
|