2022-01-23 20:44:24 +01:00
|
|
|
stages:
|
2022-01-23 23:41:54 +01:00
|
|
|
- build_and_test
|
2022-01-23 20:44:24 +01:00
|
|
|
- package
|
|
|
|
|
2022-01-23 20:50:27 +01:00
|
|
|
variables:
|
2022-01-23 21:07:44 +01:00
|
|
|
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
|
|
|
|
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
|
2022-01-23 20:50:27 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .m2/repository/
|
2022-01-23 22:31:55 +01:00
|
|
|
- target/fragment-cache/
|
2022-01-23 20:50:27 +01:00
|
|
|
|
2022-01-23 20:44:24 +01:00
|
|
|
test:
|
2022-01-23 23:41:54 +01:00
|
|
|
stage: build_and_test
|
2022-01-23 20:44:24 +01:00
|
|
|
image: maven:3-openjdk-17
|
|
|
|
script:
|
2022-01-23 23:41:54 +01:00
|
|
|
- mvn $MAVEN_CLI_OPTS clean compile test
|
2022-01-23 20:44:24 +01:00
|
|
|
artifacts:
|
2022-01-23 22:31:55 +01:00
|
|
|
name: test
|
2022-01-23 20:44:24 +01:00
|
|
|
paths:
|
|
|
|
- target/site/jacoco/
|
2022-01-23 22:31:55 +01:00
|
|
|
- target/fragment-cache/
|
2020-08-24 22:48:20 +02:00
|
|
|
|
2018-09-30 15:51:15 +02:00
|
|
|
release:
|
2022-01-23 20:44:24 +01:00
|
|
|
stage: package
|
2021-10-19 12:50:51 +02:00
|
|
|
image: maven:3-openjdk-17
|
2018-02-12 22:42:16 +01:00
|
|
|
script:
|
2022-01-23 21:24:59 +01:00
|
|
|
- mvn $MAVEN_CLI_OPTS -e package -DskipTests
|
2021-06-19 21:53:11 +02:00
|
|
|
- mkdir target/release
|
|
|
|
- ls target
|
|
|
|
- tar -C target/release -xzvf target/kickc-release.tgz
|
|
|
|
- mv target/release/kickc/jar/kickc-release.jar target/release/kickc/jar/kickc-${CI_COMMIT_REF_NAME}.jar
|
|
|
|
- mkdir ./kickc
|
|
|
|
- mv target/release/kickc/* ./kickc/
|
2022-02-18 10:46:49 +01:00
|
|
|
- touch ./kickc/fragment/cache/*
|
2018-09-26 22:49:00 +02:00
|
|
|
artifacts:
|
2018-10-02 01:06:36 +02:00
|
|
|
name: kickc_${CI_COMMIT_REF_NAME}
|
2018-09-26 22:49:00 +02:00
|
|
|
paths:
|
2019-08-09 00:03:59 +02:00
|
|
|
- ./kickc/bin
|
2020-04-11 21:24:08 +02:00
|
|
|
- ./kickc/jar
|
2020-04-11 21:15:34 +02:00
|
|
|
- ./kickc/include
|
|
|
|
- ./kickc/lib
|
2020-06-14 13:49:20 +02:00
|
|
|
- ./kickc/target
|
2019-08-09 00:03:59 +02:00
|
|
|
- ./kickc/fragment
|
|
|
|
- ./kickc/examples
|
|
|
|
- ./kickc/LICENSE*
|
|
|
|
- ./kickc/NOTICE*
|
|
|
|
- ./kickc/*.pdf
|
2021-06-19 20:49:14 +02:00
|
|
|
|
2022-01-23 23:41:54 +01:00
|
|
|
doxygen:
|
2022-01-23 20:44:24 +01:00
|
|
|
stage: package
|
2021-06-19 21:49:37 +02:00
|
|
|
image: alpine
|
2021-06-19 20:49:14 +02:00
|
|
|
script:
|
|
|
|
- apk update && apk add doxygen graphviz ttf-freefont
|
2021-06-19 21:53:11 +02:00
|
|
|
- pwd
|
|
|
|
- ls -l
|
2022-01-24 08:19:42 +00:00
|
|
|
- mkdir -p target
|
2021-06-19 21:53:11 +02:00
|
|
|
- mkdir target/doxygen
|
2021-06-19 20:49:14 +02:00
|
|
|
- doxygen src/main/doxygen/doxygen.conf
|
|
|
|
- mv target/doxygen/html/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
2022-01-24 08:19:42 +00:00
|
|
|
- master
|