mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[ANY] remove all other CI's :)
This commit is contained in:
parent
1587369ec5
commit
d3c14be4b1
2 changed files with 0 additions and 112 deletions
|
@ -1,90 +0,0 @@
|
|||
image: gradle:jdk11
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
variables:
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||
|
||||
before_script:
|
||||
- apt-get -y update
|
||||
- 'which zip || ( apt-get -y install zip )'
|
||||
- 'which git || ( apt-get -y install git )'
|
||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
- chmod +x gradlew
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | base64 -d | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
- git submodule sync
|
||||
- mv modules modules_cache || true
|
||||
- git submodule update --init --recursive --force
|
||||
- cp -a modules_cache/* modules/ || true
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- gradle assemble
|
||||
after_script:
|
||||
- mkdir -p artifacts/modules
|
||||
- cd LaunchServer/build/libs/
|
||||
- zip -r -9 ../../../artifacts/libraries.zip * -x "LaunchServer.jar" -x "LaunchServer-clean.jar"
|
||||
- cp LaunchServer.jar ../../../artifacts/LaunchServer.jar
|
||||
- cd ../../../ServerWrapper/build/libs
|
||||
- cp ServerWrapper.jar ../../../artifacts/ServerWrapper.jar
|
||||
- cd ../../../LauncherAuthlib/build/libs
|
||||
- cp LauncherAuthlib.jar ../../../artifacts/LauncherAuthlib.jar
|
||||
- cd ../../../
|
||||
- cp modules/*_module/build/libs/*.jar artifacts/modules
|
||||
- cp modules/*_swmodule/build/libs/*.jar artifacts/modules
|
||||
- cp modules/*_lmodule/build/libs/*.jar artifacts/modules
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_NAME"
|
||||
paths:
|
||||
- .gradle
|
||||
- LaunchServer/build
|
||||
- Launcher/build
|
||||
- LauncherCore/build
|
||||
- LauncherAPI/build
|
||||
- LauncherAuthlib/build
|
||||
- modules/*_*module/build
|
||||
artifacts:
|
||||
expire_in: 6 week
|
||||
paths:
|
||||
- artifacts
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- gradle check
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_NAME"
|
||||
policy: pull
|
||||
paths:
|
||||
- .gradle
|
||||
- LaunchServer/build
|
||||
- Launcher/build
|
||||
- LauncherCore/build
|
||||
- LauncherAPI/build
|
||||
- LauncherAuthlib/build
|
||||
- modules/*_*module/build
|
||||
|
||||
deploy-demo:
|
||||
stage: deploy
|
||||
only: [dev]
|
||||
script:
|
||||
- gradle build
|
||||
- eval $(ssh $SSH_USER@$SSH_HOST 'cd $SSH_DIR && cat deploy.sh')
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_NAME"
|
||||
policy: pull
|
||||
paths:
|
||||
- .gradle
|
||||
- LaunchServer/build
|
||||
- Launcher/build
|
||||
- LauncherCore/build
|
||||
- LauncherAPI/build
|
||||
- LauncherAuthlib/build
|
||||
- modules/*_*module/build
|
22
.travis.yml
22
.travis.yml
|
@ -1,22 +0,0 @@
|
|||
language: java
|
||||
dist: trusty
|
||||
jdk:
|
||||
- openjdk11
|
||||
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior!
|
||||
# disable the default submodule logic
|
||||
git:
|
||||
submodules: false
|
||||
# use sed to replace the SSH URL with the public URL, then init and update submodules
|
||||
before_install:
|
||||
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
||||
- git submodule update --init --recursive
|
||||
# gradle
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
script:
|
||||
- ./gradlew build
|
Loading…
Reference in a new issue