.gitlab-ci.yml 761 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
image: ubuntu:18.04
Nane Kratzke's avatar
Nane Kratzke committed
2

Nane Kratzke's avatar
Nane Kratzke committed
3
stages:
Nane Kratzke's avatar
Nane Kratzke committed
4
5
  - build
  - test
Nane Kratzke's avatar
Nane Kratzke committed
6
  - deploy
Nane Kratzke's avatar
Nane Kratzke committed
7

Nane Kratzke's avatar
Nane Kratzke committed
8
buildjob1:
Nane Kratzke's avatar
Nane Kratzke committed
9
10
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
11
    - echo "This is job 1"
Nane Kratzke's avatar
Nane Kratzke committed
12
    - apt-get install openjdk-11-jdk 
Nane Kratzke's avatar
Nane Kratzke committed
13
    - mkdir builds
Nane Kratzke's avatar
Nane Kratzke committed
14
    - javac -d builds src/English.java
Nane Kratzke's avatar
Nane Kratzke committed
15
16
17
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
18

Nane Kratzke's avatar
Nane Kratzke committed
19
buildjob2:
Nane Kratzke's avatar
Nane Kratzke committed
20
  stage: build
Nane Kratzke's avatar
Nane Kratzke committed
21
  script:
Nane Kratzke's avatar
Nane Kratzke committed
22
    - echo "This is job 2"
Nane Kratzke's avatar
Nane Kratzke committed
23
    - apk add util-linux openjdk11
Nane Kratzke's avatar
Nane Kratzke committed
24
    - mkdir builds
Nane Kratzke's avatar
Nane Kratzke committed
25
    - javac -d builds src/German.java
Nane Kratzke's avatar
Nane Kratzke committed
26
27
28
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
29

Nane Kratzke's avatar
Nane Kratzke committed
30
buildjob3:
Nane Kratzke's avatar
Nane Kratzke committed
31
32
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
33
    - echo "This is job 3"
Nane Kratzke's avatar
Nane Kratzke committed
34
    - apk add util-linux openjdk11
Nane Kratzke's avatar
Nane Kratzke committed
35
    - mkdir builds
Nane Kratzke's avatar
Nane Kratzke committed
36
    - javac -d builds src/Spanish.java
Nane Kratzke's avatar
Nane Kratzke committed
37
38
39
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
40

Nane Kratzke's avatar
Nane Kratzke committed
41
testjob1:
Nane Kratzke's avatar
Nane Kratzke committed
42
  stage: test
Nane Kratzke's avatar
Nane Kratzke committed
43
  script:
Nane Kratzke's avatar
Nane Kratzke committed
44
    - echo "This is test job 1"
Nane Kratzke's avatar
Nane Kratzke committed
45
    - mkdir results
Nane Kratzke's avatar
Nane Kratzke committed
46
    - ls -la builds/*