-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
27 lines (25 loc) · 738 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
stages:
- build
- server
build:
stage: build
except:
- branches
script:
- apt-get update && apt-get install -y curl
- git config --global user.name "Starlis CI"
- git config --global user.email "noreply@starlis.com"
- git submodule update --init --recursive
- ./ecraft up
- ./ecraft patch
- mvn clean install -U -B
- cp server/target/empirecraft.jar /test-server/minecraft_server.jar
server:
stage: server
except:
- branches
script:
- cd /test-server
- echo "Failed to load plugin" > TEST_RESULTS
- java -DIReallyKnowWhatIAmDoingISwear=1 -XX:+UseG1GC -DCISERVER=1 -Xmx1G -jar minecraft_server.jar
- test ! -s TEST_RESULTS || (cat TEST_RESULTS ; echo "" ; exit 1)