freeCodeCamp/.travis.yml

39 lines
703 B
YAML

language: node_js
node_js:
- 'lts/*'
cache:
directories:
- '$HOME/.npm'
env:
global:
- NO_UPDATE_NOTIFIER=1
- NODE_NO_WARNINGS=1
before_install:
- npm config set loglevel warn
install: npm ci
before_script:
- git config --global user.email team+camperbot@freeCodeCamp.org
- git config --global user.name "CamperBot"
jobs:
include:
- stage: Lint javaScript
script:
- npm run ensure-env
- npm run lint
- stage: Unit and Integration tests
script: npm test
- stage: Artifacts builds
if: branch = master && type != pull_request
script: bash tools/ci-scripts/trigger-build.sh
install: skip
before_script: skip