37 lines
645 B
YAML
37 lines
645 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: Unit and Integration tests
|
|
script:
|
|
- npm run ensure-env
|
|
- npm test
|
|
|
|
- stage: Artifacts builds
|
|
if: branch = master && type != pull_request
|
|
script: bash tools/ci-scripts/trigger-build.sh
|
|
install: skip
|
|
before_script: skip
|
|
|