2020-01-14 16:52:39 -05:00
|
|
|
sudo: required
|
2020-04-28 10:29:37 -04:00
|
|
|
|
|
|
|
dist: bionic
|
2020-01-17 16:07:26 -05:00
|
|
|
|
2020-01-14 16:52:39 -05:00
|
|
|
language: node_js
|
2020-02-12 10:34:34 -05:00
|
|
|
|
2020-01-14 16:52:39 -05:00
|
|
|
node_js:
|
2021-08-10 11:08:47 -04:00
|
|
|
- 14
|
2020-02-12 10:34:34 -05:00
|
|
|
|
2020-04-03 10:20:08 -04:00
|
|
|
services:
|
|
|
|
- docker
|
2020-04-28 10:29:37 -04:00
|
|
|
- xvfb
|
2020-02-12 10:34:34 -05:00
|
|
|
|
2020-05-11 13:46:26 -04:00
|
|
|
before_install:
|
2021-08-10 11:08:47 -04:00
|
|
|
- dpkg --compare-versions `npm -v` ge 7.10 || npm i -g npm@^7.10
|
|
|
|
- npm --version
|
2020-05-11 13:46:26 -04:00
|
|
|
- |
|
2020-08-03 16:12:02 -04:00
|
|
|
if [[ $TRAVIS_BRANCH =~ ^(feature\/.*)$ ]]; then
|
|
|
|
export E2E_TAG="dev"
|
|
|
|
elif [[ $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|rrt\/.*)$ ]]; then
|
2020-05-18 13:58:38 -04:00
|
|
|
export E2E_TAG="${TRAVIS_BRANCH//\//_}"
|
2020-05-11 13:46:26 -04:00
|
|
|
else
|
|
|
|
export E2E_TAG="latest"
|
|
|
|
fi
|
2020-05-18 13:58:38 -04:00
|
|
|
echo "E2E_TAG = $E2E_TAG"
|
2020-05-11 13:46:26 -04:00
|
|
|
|
2020-01-14 16:52:39 -05:00
|
|
|
install:
|
|
|
|
- npm install
|
2020-02-12 10:34:34 -05:00
|
|
|
|
2020-02-14 14:51:02 -05:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
|
2020-05-22 15:42:42 -04:00
|
|
|
env:
|
2020-05-22 15:50:36 -04:00
|
|
|
global:
|
2020-05-22 23:43:32 -04:00
|
|
|
- API_URL=http://localhost:5000/v1.0
|
|
|
|
- BASE_HREF=/
|
2020-06-16 11:09:17 -04:00
|
|
|
- DEPLOY_URL=/
|
2020-05-22 23:43:32 -04:00
|
|
|
- HOME_ROUTE=home
|
2020-05-25 15:26:46 -04:00
|
|
|
- IRB_URL=http://localhost:5001/
|
2020-05-22 23:43:32 -04:00
|
|
|
- PORT0=4200
|
|
|
|
- PRODUCTION=false
|
2020-01-14 16:52:39 -05:00
|
|
|
script:
|
|
|
|
- npm run ci
|
2020-02-12 10:34:34 -05:00
|
|
|
|
2020-04-03 10:15:08 -04:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
recipients:
|
|
|
|
- dan@sartography.com
|