37 lines
578 B
YAML
37 lines
578 B
YAML
language: node_js
|
|
|
|
node_js:
|
|
- 'lts/*'
|
|
|
|
cache:
|
|
directories:
|
|
- '$HOME/.npm'
|
|
|
|
env:
|
|
global:
|
|
- NO_UPDATE_NOTIFIER=1
|
|
- NODE_NO_WARNINGS=1
|
|
- FREECODECAMP_NODE_ENV=production
|
|
- API_LOCATION="http://localhost:3000"
|
|
- FORUM_PROXY="https://forum.localhost"
|
|
- NEWS_PROXY="https://news.localhost"
|
|
|
|
|
|
before_install:
|
|
- npm config set loglevel warn
|
|
|
|
install: npm ci
|
|
|
|
before_script:
|
|
- npm run ensure-env
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Lint javaScript
|
|
script:
|
|
- npm run lint
|
|
|
|
- stage: Unit and Integration tests
|
|
script: npm test
|
|
|