Launcher/.gitlab-ci.yml

33 lines
679 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:
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/*
2019-05-14 15:11:55 +03:00
- ServerWrapper/build/libs/*.jar
expire_in: 1 week
after_script:
2019-05-15 14:11:22 +03:00
- echo "End CI"