aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: ce9d5aa81da1cd4861860ced2c6b09ccb16811a3 (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 -e "host: localhost\nport: 8080\ndev_port: 8008\ntitle: test" > settings.yml
    script:
        - yarn eslint packages/server
        - yarn workspace client lint