mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[ANY] Try new gitlab ci
This commit is contained in:
parent
602a20325c
commit
747e5fec0c
1 changed files with 33 additions and 4 deletions
|
@ -4,6 +4,8 @@ stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
variables:
|
||||||
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get -y update
|
- apt-get -y update
|
||||||
|
@ -18,11 +20,13 @@ before_script:
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
- git submodule sync
|
- git submodule sync
|
||||||
- git submodule update --init --recursive
|
- mv modules modules_cache || true
|
||||||
|
- git submodule update --init --recursive --force
|
||||||
|
- cp -a modules_cache/* modules/ || true
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- ./gradlew assemble
|
- gradle assemble
|
||||||
after_script:
|
after_script:
|
||||||
- mkdir -p artifacts/modules
|
- mkdir -p artifacts/modules
|
||||||
- cd LaunchServer/build/libs/
|
- cd LaunchServer/build/libs/
|
||||||
|
@ -39,6 +43,12 @@ build:
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .gradle
|
- .gradle
|
||||||
|
- LaunchServer/build
|
||||||
|
- Launcher/build
|
||||||
|
- LauncherCore/build
|
||||||
|
- LauncherAPI/build
|
||||||
|
- LauncherAuthlib/build
|
||||||
|
- modules/*_*module/build
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 6 week
|
expire_in: 6 week
|
||||||
paths:
|
paths:
|
||||||
|
@ -47,9 +57,28 @@ build:
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./gradlew check
|
- gradle check
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradle
|
||||||
|
- LaunchServer/build
|
||||||
|
- Launcher/build
|
||||||
|
- LauncherCore/build
|
||||||
|
- LauncherAPI/build
|
||||||
|
- LauncherAuthlib/build
|
||||||
|
- modules/*_*module/build
|
||||||
|
|
||||||
deploy-demo:
|
deploy-demo:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- ssh $SSH_USER@$SSH_HOST 'echo HELLO WORLD'
|
- gradle build
|
||||||
|
- eval $(ssh $SSH_USER@$SSH_HOST 'cd $SSH_DIR && cat deploy.sh')
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradle
|
||||||
|
- LaunchServer/build
|
||||||
|
- Launcher/build
|
||||||
|
- LauncherCore/build
|
||||||
|
- LauncherAPI/build
|
||||||
|
- LauncherAuthlib/build
|
||||||
|
- modules/*_*module/build
|
Loading…
Reference in a new issue