Launcher/.gitlab-ci.yml

42 lines
908 B
YAML
Raw Normal View History

image: frekele/java
2019-05-14 15:11:55 +03:00
stages:
- build
- 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
- 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
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"