mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX][FEATURE] Перенесены файлы GitLab CI и Travis CI с 5.0
This commit is contained in:
parent
c69460d802
commit
11ecf9badc
2 changed files with 34 additions and 5 deletions
32
.gitlab-ci.yml
Normal file
32
.gitlab-ci.yml
Normal 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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue