-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (39 loc) · 944 Bytes
/
.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
# Note: We use --silent argument on yarn invocations to keep the output simple
# and readable through email notifications.
image: node:8
cache:
key: 'node-modules-cyclassist'
paths:
- node_modules/
- yarn.lock
stages:
- lint # Check code syntax and coding style
- build # Try to build Kresus code
- test # Run unit tests
# Lint and check last commit in a dedicated task
lint:
stage: lint
before_script:
- yarn install
script:
# Lint JS code
- yarn run --silent lint
# Build the server and client code in dev and production
build:
stage: build
before_script:
- yarn install
script:
# Check everything builds correctly
- yarn run --silent build
cache:
policy: pull
# Run tests
test:
stage: test
before_script:
- yarn install
script:
- yarn run --silent test
cache:
policy: pull