.gitlab-ci.yml 607 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
8
9
10
11
  
before_script:
  - apt-get update
  - apt-get -y install openjdk-11-jdk
  - mkdir builds
Nane Kratzke's avatar
Nane Kratzke committed
12

Nane Kratzke's avatar
Nane Kratzke committed
13
buildjob1:
Nane Kratzke's avatar
Nane Kratzke committed
14
15
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
16
    - javac -d builds src/English.java
Nane Kratzke's avatar
Nane Kratzke committed
17
18
19
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
20

Nane Kratzke's avatar
Nane Kratzke committed
21
buildjob2:
Nane Kratzke's avatar
Nane Kratzke committed
22
  stage: build
Nane Kratzke's avatar
Nane Kratzke committed
23
  script:
Nane Kratzke's avatar
Nane Kratzke committed
24
    - javac -d builds src/German.java
Nane Kratzke's avatar
Nane Kratzke committed
25
26
27
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
28

Nane Kratzke's avatar
Nane Kratzke committed
29
buildjob3:
Nane Kratzke's avatar
Nane Kratzke committed
30
31
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
32
    - javac -d builds src/Spanish.java
Nane Kratzke's avatar
Nane Kratzke committed
33
34
35
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
36

Nane Kratzke's avatar
Nane Kratzke committed
37
testjob1:
Nane Kratzke's avatar
Nane Kratzke committed
38
  stage: test
Nane Kratzke's avatar
Nane Kratzke committed
39
  script:
Nane Kratzke's avatar
Nane Kratzke committed
40
    - echo "This is test job 1"
Nane Kratzke's avatar
Nane Kratzke committed
41
    - mkdir results
Nane Kratzke's avatar
Nane Kratzke committed
42
    - ls -la builds/*