2016-07-02 14:04:38 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2019-02-12 19:04:50 +01:00
|
|
|
- 10
|
2019-10-02 10:13:08 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
|
|
|
|
- libgconf-2-4
|
2019-02-12 19:04:50 +01:00
|
|
|
cache:
|
2019-10-02 10:13:08 +02:00
|
|
|
# Caches $HOME/.npm when npm ci is default script command
|
|
|
|
# Caches node_modules in all other cases
|
|
|
|
npm: true
|
2019-02-12 19:04:50 +01:00
|
|
|
directories:
|
|
|
|
- ~/.cache
|
2016-07-02 14:39:11 +02:00
|
|
|
install:
|
2019-02-12 19:04:50 +01:00
|
|
|
- npm ci
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: Judging bundle size
|
|
|
|
script: npm run bundlesize
|
|
|
|
|
|
|
|
- stage: Linting code
|
|
|
|
script: npm run lint
|
|
|
|
|
|
|
|
- stage: Running tests
|
2019-02-19 10:00:09 +01:00
|
|
|
script: npm run test
|