forked from andrei1058/BedWarsProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
33 lines (29 loc) · 1.24 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repos -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
image: "maven:3.6.3-jdk-8"
development-job:
except:
- 'tags'
script:
- 'mvn versions:set -DnewVersion=1.2.4-SNAPSHOT'
- 'mvn versions:update-child-modules'
- 'mvn -DgitVer=git-$CI_COMMIT_SHORT_SHA- -U clean install -s ci_settings.xml'
artifacts:
paths:
- '*/target/*.jar'
- 'proxy-api/target/apidocs'
release-job:
only:
- 'tags'
script:
- 'mvn versions:set -DnewVersion=1.2.4'
- 'mvn versions:update-child-modules'
- 'mvn -DgitVer='''' -U clean deploy -s ci_settings.xml'
after_script:
- 'apt-get update && apt-get install -y -qq lftp'
- 'lftp -c "set ftp:ssl-allow no; open -u $APIDOCS_USER,$APIDOCS_PASS andrei1058.com; mirror -Rev proxy-api/target/apidocs ./$CI_PROJECT_TITLE --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"'
artifacts:
paths:
- '*/target/*.jar'
- 'proxy-api/target/apidocs'