ci.yml 2.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
ci_build_node12:
    only:
        - master
        - merge_requests
    stage: build
    image: node:12-buster-slim
    before_script:
        - apt-get update -yqq
        - apt-get install -y gnupg2 wget apt-transport-https
        - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
        - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
        - apt-get update -yqq
        - apt-get install -y google-chrome-stable
14
    script: npm install
15
16
17
18
19
20
21
22
23
24
25
26
27
28

ci_build_node14:
    only:
        - master
        - merge_requests
    stage: build
    image: node:14-buster-slim
    before_script:
        - apt-get update -yqq
        - apt-get install -y gnupg2 wget apt-transport-https
        - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
        - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
        - apt-get update -yqq
        - apt-get install -y google-chrome-stable
29
    script: npm install
30

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
test_node12:
    only:
        - master
        - merge_requests
    stage: test
    image: node:12-buster-slim
    before_script:
        - apt-get update -yqq
        - apt-get install -y gnupg2 wget apt-transport-https
        - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
        - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
        - apt-get update -yqq
        - apt-get install -y google-chrome-stable
    script: npm install-test

test_node14:
    only:
        - master
        - merge_requests
    stage: test
    image: node:14-buster-slim
    before_script:
        - apt-get update -yqq
        - apt-get install -y gnupg2 wget apt-transport-https
        - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
        - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
        - apt-get update -yqq
        - apt-get install -y google-chrome-stable
    script: npm install-test
    
packaging:
    only:
        - master
        - merge_requests
    stage: package
    image: maven:latest
    script: "mvn -DskipTests clean package"
    artifacts:
        paths:
            - "target/*.jar"
        expire_in: 600 seconds

staging:
    stage: deploy
    trigger:
        project: hifis-technical-platform/helmholtz-marketplace-server