freeCodeCamp/.travis.yml

37 lines
584 B
YAML
Raw Normal View History

language: node_js
node_js:
- 'lts/*'
2016-04-03 03:52:52 +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
2018-09-26 15:01:08 +00:00
before_install:
- npm config set loglevel warn
install: npm ci
before_script:
- npm run ensure-env
2018-09-26 15:01:08 +00:00
jobs:
include:
- stage: Lint javaScript
script:
- npm run lint
- stage: Unit and Integration tests
2019-02-15 23:54:14 +00:00
script: npm test
- 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
install: skip
before_script: skip