.gitlab-ci.yml 444 Bytes
Newer Older
Lohse, Felix's avatar
4    
Lohse, Felix committed
1
2
variables:
    GREET: "Mundo"
Lohse, Felix's avatar
Lohse, Felix committed
3

Lohse, Felix's avatar
4    
Lohse, Felix committed
4
5
stages:
    - test
Lohse, Felix's avatar
Lohse, Felix committed
6

Lohse, Felix's avatar
4    
Lohse, Felix committed
7
8
9
java:
    stage: test
    image: "openjdk:14"
Lohse, Felix's avatar
Lohse, Felix committed
10
    script:
Lohse, Felix's avatar
4    
Lohse, Felix committed
11
12
13
14
        - javac src/*.java
        - java -cp src/ Hello $GREET > result.txt
        - cat result.txt
        - cat result.txt | grep "Hello $GREET"
Lohse, Felix's avatar
Lohse, Felix committed
15

Lohse, Felix's avatar
4    
Lohse, Felix committed
16
17
18
python:
    stage: test
    image: "python:3-slim"
Lohse, Felix's avatar
Lohse, Felix committed
19
    script:
Lohse, Felix's avatar
4    
Lohse, Felix committed
20
21
22
        - python src/hello.py $GREET > result.txt
        - cat result.txt
        - cat result.txt | grep "Hello $GREET"