aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2a280e9c1fb1d95a46cad14b1f3573398191ab41 (plain)
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
image: node:14-buster

cache:
    paths:
        - node_modules/

stages:
    - prepare
    - test

apt:
    stage: prepare
    script:
        - apt-get update -y -qq
        - DEBIAN_FRONTEND=noninteractive apt-get install -y -qq git libpcre3 libpcre2-posix0 libkrb5-3 libk5crypto3 libcom-err2 libssl1.1 libssl-dev

yarn-install:
    stage: prepare
    script:
        - yarn install

test:
    stage: test
    before_script:
        - gpg --keyserver keys.openpgp.org --receive-keys 9C0309603A7DA7CE3F1B2CE7B7D6FB9B7AFDF0DE
    script:
        - yarn test --ci=true

eslint:
    stage: test
    before_script:
      - >
        echo "{ \"host\": \"localhost\", \"port\": 8080, \"title\": \"test\", \"about\": \"lol\", \"dev\": { \"port\": 8008 } }" > settings.json
    script:
        - yarn eslint packages/server
        - yarn workspace client lint