-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
52 lines (46 loc) · 1.09 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Uses NodeJS V 11.13.0
image: node:11.13.0
# And to cache them as well.
cache:
paths:
- node_modules/
- .yarn
# We tell GitLab to install all the packages
# before running anything.
# Docker images come with yarn preinstalled
before_script:
- apt-get update -qq && apt-get install
# Specify the stages. Those are the steps that GitLab will go through
# Order matters.
stages:
- lint
- build
- test
Lint:
stage: lint
before_script:
- yarn install
- yarn global add lerna
script:
- yarn lint
Build:
stage: build
before_script:
- yarn install
- yarn global add lerna
script:
- lerna bootstrap
- lerna run build
Test:
stage: test
when: manual
before_script:
- yarn install --frozen-lockfile
script:
# Installs Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
- apt-get update
- apt-get install google-chrome-stable -y
# Runs the tests.
- yarn test