mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 15:29:20 -04:00
test
This commit is contained in:
parent
406cbf3d59
commit
e578d9fe51
@ -1,4 +1,4 @@
|
|||||||
image: openjdk:11-jdk-slim
|
image: azul/zulu-openjdk-alpine:11-latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||||
@ -8,9 +8,11 @@ before_script:
|
|||||||
- export GRADLE_USER_HOME=`pwd`/.gradle_home
|
- export GRADLE_USER_HOME=`pwd`/.gradle_home
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- create
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- package
|
- package
|
||||||
|
- publish
|
||||||
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
@ -34,6 +36,15 @@ cache:
|
|||||||
paths:
|
paths:
|
||||||
- ./it
|
- ./it
|
||||||
|
|
||||||
|
create:
|
||||||
|
stage: create
|
||||||
|
image: alpine:latest
|
||||||
|
script:
|
||||||
|
- apk add git curl
|
||||||
|
- ./release/create.sh
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script: ./gradlew --build-cache assemble -Pminosoft.updates=true
|
script: ./gradlew --build-cache assemble -Pminosoft.updates=true
|
||||||
@ -56,9 +67,19 @@ package:
|
|||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
- ./gradlew fatJar --stacktrace -Pminosoft.updates=true
|
- ./gradlew fatJar --stacktrace -Pminosoft.updates=true
|
||||||
|
- apk add git curl
|
||||||
|
- ./release/upload.sh
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/libs/minosoft-fat-*.jar
|
- build/libs/minosoft-fat-*.jar
|
||||||
expire_in: 1 days
|
expire_in: 1 days
|
||||||
|
|
||||||
|
publish:
|
||||||
|
stage: publish
|
||||||
|
image: alpine:latest
|
||||||
|
script:
|
||||||
|
- ./release/release.sh
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
22
release/create.sh
Normal file
22
release/create.sh
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
#
|
||||||
|
# Minosoft
|
||||||
|
# Copyright (C) 2020-2024 Moritz Zwerger
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||||
|
#
|
||||||
|
|
||||||
|
curl \
|
||||||
|
--form-string "stable=false" \
|
||||||
|
-F "page=" \
|
||||||
|
-F "release_notes=abc" \
|
||||||
|
-F "channel=test" \
|
||||||
|
-H "Authorization: Bearer ..Hs6dpK_aHBWeuasq2MA2c_zBw1JCJsgk4Lcw2fm1PoI" \
|
||||||
|
localhost:8080/api/v1/releases/create/test
|
||||||
|
# https://minosoft.bixilon.de/api/v1/releases/create/test
|
Loading…
x
Reference in New Issue
Block a user