[FIX][FEATURE] Перенесены файлы GitLab CI и Travis CI с 5.0

This commit is contained in:
Gravit 2019-06-25 11:35:52 +07:00
parent c69460d802
commit 11ecf9badc
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 34 additions and 5 deletions

32
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,32 @@
image: frekele/java
stages:
- build
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
- export GRADLE_USER_HOME=`pwd`/.gradle
- apt-get update -qq && apt-get install -y -qq git git-core
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
stage: build
script:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule sync
- git submodule update --init --recursive
- ./gradlew assemble
artifacts:
paths:
- LaunchServer/build/libs/*
- ServerWrapper/build/libs/*.jar
expire_in: 1 week
after_script:
- echo "End CI"

View file

@ -1,5 +1,5 @@
# project is java
language: java
dist: trusty
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior!
# disable the default submodule logic
git:
@ -17,7 +17,4 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./gradlew assemble build
# not working artifacts
addons:
artifacts: false
- ./gradlew build