2019-06-18 15:48:00 +03:00
|
|
|
image: frekele/java
|
2019-05-14 15:11:55 +03:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2019-08-29 12:46:52 +03:00
|
|
|
- test
|
2019-05-14 15:11:55 +03:00
|
|
|
- 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
|
2019-06-18 18:07:44 +03:00
|
|
|
- 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-08-29 12:46:52 +03:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./gradlew check
|
2019-05-14 15:11:55 +03:00
|
|
|
|
|
|
|
after_script:
|
2019-05-15 14:11:22 +03:00
|
|
|
- echo "End CI"
|