-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathappveyor.yml
28 lines (27 loc) · 880 Bytes
/
appveyor.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
28
version: '{build}'
image: ubuntu
stack: jdk 8
cache:
- /home/appveyor/.m2
install:
- ps: .\build_scripts\UpdateBuildVersion.ps1
before_build:
- mvn -v
build_script:
- mvn clean package -DskipTests
- mvn package -P debug
test_script:
- mvn install verify
test: off
on_finish:
- sh: |
find "$APPVEYOR_BUILD_FOLDER" -type f -name 'TEST*.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
artifacts:
- path: "**/target/MineOnline-*.jar"
name: "MineOnline.jar"
- path: "**/target/MineOnline-*.exe"
name: "MineOnline.exe"
on_success:
- ps: if ($env:APPVEYOR_REPO_BRANCH -eq "main") {.\build_scripts\discord-webhook.ps1 success $env:DISCORD_WEBHOOK_URL}
on_failure:
- ps: if ($env:APPVEYOR_REPO_BRANCH -eq "main") {.\build_scripts\discord-webhook.ps1 failure $env:DISCORD_WEBHOOK_URL}