.gitlab-ci.yml 444 Bytes
Newer Older
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
1
2
variables:
    GREET: "Mundo"
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
3

Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
4
5
stages:
    - test
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
6

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

Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
16
python:
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
17
    image: "python:3-slim"
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
18
    stage: test
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
19
    script:
Jan-Ole Hübner's avatar
Jan-Ole Hübner committed
20
21
22
        - python src/hello.py $GREET > result.txt
        - cat result.txt
        - cat result.txt | grep "Hello $GREET"