2014-02-25 06:25:39 +00:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2018-04-03 13:25:42 +00:00
|
|
|
- 'lts/*'
|
2016-04-03 03:52:52 +00:00
|
|
|
|
2016-08-16 12:30:43 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2019-02-15 20:52:11 +00:00
|
|
|
- '$HOME/.npm'
|
2018-09-26 15:01:08 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- NO_UPDATE_NOTIFIER=1
|
|
|
|
- NODE_NO_WARNINGS=1
|
2016-08-16 12:30:43 +00:00
|
|
|
|
2018-09-26 15:01:08 +00:00
|
|
|
before_install:
|
|
|
|
- npm config set loglevel warn
|
|
|
|
|
|
|
|
install: npm ci
|
|
|
|
|
|
|
|
before_script:
|
2019-02-22 11:49:12 +00:00
|
|
|
- npm run ensure-env
|
2018-09-26 15:01:08 +00:00
|
|
|
|
2019-02-15 07:44:00 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-02-16 08:53:15 +00:00
|
|
|
- stage: Lint javaScript
|
2019-02-16 13:58:43 +00:00
|
|
|
script:
|
|
|
|
- npm run lint
|
2019-02-16 08:53:15 +00:00
|
|
|
|
2019-02-15 07:44:00 +00:00
|
|
|
- stage: Unit and Integration tests
|
2019-02-15 23:54:14 +00:00
|
|
|
script: npm test
|
2019-02-15 07:44:00 +00:00
|
|
|
|
|
|
|
- stage: Artifacts builds
|
|
|
|
if: branch = master && type != pull_request
|
2019-02-15 09:52:26 +00:00
|
|
|
script: bash tools/ci-scripts/trigger-build.sh
|
2019-02-15 10:41:33 +00:00
|
|
|
install: skip
|
|
|
|
before_script: skip
|