1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-22 06:29:23 +00:00
kickc/.gitlab-ci.yml

71 lines
1.6 KiB
YAML
Raw Normal View History

2022-01-23 19:44:24 +00:00
stages:
- build
- test
- package
2022-01-23 19:50:27 +00:00
variables:
2022-01-23 20:07:44 +00: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 19:50:27 +00:00
cache:
paths:
- .m2/repository/
- target/
2022-01-23 19:44:24 +00:00
build:
stage: build
image: maven:3-openjdk-17
script:
- mvn $MAVEN_CLI_OPTS compile
test:
stage: test
image: maven:3-openjdk-17
script:
- mvn $MAVEN_CLI_OPTS test
artifacts:
name: jacoco
paths:
- target/site/jacoco/
release:
2022-01-23 19:44:24 +00:00
stage: package
2021-10-19 10:50:51 +00:00
image: maven:3-openjdk-17
2018-02-12 21:42:16 +00:00
script:
2022-01-23 19:44:24 +00:00
- mvn $MAVEN_CLI_OPTS -e package
2021-06-19 19:53:11 +00: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/
artifacts:
name: kickc_${CI_COMMIT_REF_NAME}
paths:
- ./kickc/bin
- ./kickc/jar
- ./kickc/include
- ./kickc/lib
- ./kickc/target
- ./kickc/fragment
- ./kickc/examples
- ./kickc/LICENSE*
- ./kickc/NOTICE*
- ./kickc/*.pdf
pages:
2022-01-23 19:44:24 +00:00
stage: package
2021-06-19 19:49:37 +00:00
image: alpine
script:
- apk update && apk add doxygen graphviz ttf-freefont
2021-06-19 19:53:11 +00:00
- pwd
- ls -l
- mkdir target
- mkdir target/doxygen
- doxygen src/main/doxygen/doxygen.conf
- mv target/doxygen/html/ public/
artifacts:
paths:
- public
only:
- master