Launcher/.gitlab-ci.yml

38 lines
869 B
YAML
Raw Normal View History

image: frekele/java
2019-05-14 15:11:55 +03:00
stages:
- build
- deploy
before_script:
2019-05-15 14:11:22 +03:00
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
2019-05-14 15:11:55 +03:00
- export GRADLE_USER_HOME=`pwd`/.gradle
- apt-get update -qq && apt-get install -y -qq git git-core
2019-05-14 15:11:55 +03:00
cache:
2019-08-22 10:49:50 +03:00
key: ${CI_COMMIT_REF_NAME}
2019-05-14 15:11:55 +03:00
paths:
- .gradle/wrapper
- .gradle/caches
build:
stage: build
script:
2019-05-14 15:35:55 +03:00
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule sync
- git submodule update --init --recursive
2019-05-14 15:11:55 +03:00
- ./gradlew assemble
2019-08-22 10:49:50 +03:00
- mv LaunchServer/build/libs/*.jar LaunchServer
- mv ServerWrapper/build/libs/*.jar ServerWrapper
- mv modules/*_module/build/libs/*.jar modules
2019-05-14 15:11:55 +03:00
artifacts:
paths:
2019-08-22 10:49:50 +03:00
- LaunchServer/*.jar
- ServerWrapper/*.jar
- modules/*.jar
2019-05-14 15:11:55 +03:00
expire_in: 1 week
after_script:
2019-05-15 14:11:22 +03:00
- echo "End CI"