2019-05-14 15:11:55 +03:00
|
|
|
image: java:8-jdk
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- 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
|
|
|
|
|
|
|
|
cache:
|
|
|
|
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
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- LaunchServer/build/libs/*.jar
|
|
|
|
- ServerWrapper/build/libs/*.jar
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./gradlew check
|
|
|
|
|
|
|
|
after_script:
|
2019-05-15 14:11:22 +03:00
|
|
|
- echo "End CI"
|