forked from jagrosh/MusicBot
-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathappveyor.yml
More file actions
33 lines (26 loc) · 1.11 KB
/
Copy pathappveyor.yml
File metadata and controls
33 lines (26 loc) · 1.11 KB
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
29
30
31
32
33
image: Ubuntu2204
environment:
MAVEN_OPTS: -Xmx3200m
install:
- sh: sudo apt-get update
- sh: sudo apt-get install -y maven wget tar
- sh: |
set -e
JDK_URL="https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_x64_linux_hotspot_25.0.2_10.tar.gz"
wget -q "$JDK_URL" -O /tmp/temurin25.tar.gz
sudo mkdir -p /opt/temurin25
sudo tar -xzf /tmp/temurin25.tar.gz -C /opt/temurin25 --strip-components=1
export JAVA_HOME=/opt/temurin25
export PATH="$JAVA_HOME/bin:$PATH"
java -version
mvn -v
build_script:
- sh: export JAVA_HOME=/opt/temurin25 && export PATH="$JAVA_HOME/bin:$PATH" && mvn --batch-mode --update-snapshots -DskipTests package
test_script:
- sh: export JAVA_HOME=/opt/temurin25 && export PATH="$JAVA_HOME/bin:$PATH" && mvn --batch-mode --update-snapshots verify
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/*.?ar"
version: "{build}"