2016-11-22 13:49:53 +01:00
|
|
|
# This file is a template, and might need editing before it works on your project.
|
|
|
|
# Official framework image. Look for the different tagged releases at:
|
|
|
|
# https://hub.docker.com/r/library/node/tags/
|
2019-04-07 19:54:55 +02:00
|
|
|
image: node:8
|
2016-11-22 13:49:53 +01:00
|
|
|
|
2017-03-01 20:42:45 +01:00
|
|
|
stages:
|
2017-03-09 08:58:17 +01:00
|
|
|
- lint
|
2017-03-01 20:42:45 +01:00
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2017-03-09 08:58:17 +01:00
|
|
|
lint:
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- yarn
|
|
|
|
- npm run lint
|
|
|
|
|
2016-11-22 13:49:53 +01:00
|
|
|
test:
|
2017-03-01 20:46:07 +01:00
|
|
|
stage: test
|
2019-04-28 19:14:35 +02:00
|
|
|
variables:
|
|
|
|
APT_CACHE_DIR: apt-cache
|
2016-11-22 13:49:53 +01:00
|
|
|
script:
|
2019-04-28 19:14:35 +02:00
|
|
|
- mkdir -pv $APT_CACHE_DIR && apt-get -qq update
|
|
|
|
- apt install firefox-esr -y --no-install-recommends
|
|
|
|
- firefox --version
|
2017-02-16 13:48:36 +01:00
|
|
|
- yarn
|
2016-11-22 13:49:53 +01:00
|
|
|
- npm run unit
|
2017-02-18 21:26:17 +01:00
|
|
|
|
2016-11-22 13:49:53 +01:00
|
|
|
build:
|
2017-03-01 20:46:07 +01:00
|
|
|
stage: build
|
2016-11-22 13:49:53 +01:00
|
|
|
script:
|
2017-02-16 13:48:36 +01:00
|
|
|
- yarn
|
2016-11-22 14:04:54 +01:00
|
|
|
- npm run build
|
2016-12-08 15:55:12 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/
|