Typicalc/.gitlab-ci.yml

37 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2021-06-21 09:24:31 +00:00
stages:
- Build
- Test
- Package
2021-06-15 10:25:59 +00:00
variables:
2022-02-24 11:08:53 +00:00
NIX_PATH: "nixpkgs=channel:nixos-21.11"
2021-06-15 10:25:59 +00:00
2021-01-27 09:24:54 +00:00
build:
2021-06-21 09:24:31 +00:00
stage: Build
2021-01-27 09:24:54 +00:00
script:
2021-06-15 10:25:59 +00:00
- nix-shell --pure --run "file src/main/resources/language/translation_de.properties | rg UTF-8"
2021-07-12 09:43:34 +00:00
- nix-shell --pure --run "mvn --no-transfer-progress -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp compile test-compile"
2021-06-21 09:24:31 +00:00
test:
stage: Test
dependencies:
- build
script:
2021-06-17 06:37:54 +00:00
- nix-shell --pure --run "mvn --no-transfer-progress -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check jacoco:prepare-agent test jacoco:report"
2021-06-15 10:25:59 +00:00
- nix-shell --pure --run "python3 ./cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml"
- nix-shell --pure --run "python3 ./source2filename.py target/site/cobertura.xml"
- nix-shell --pure --run "./calcCoverage.sh < target/site/cobertura.xml"
artifacts:
reports:
2021-01-28 13:44:11 +00:00
cobertura: target/site/cobertura.xml
2021-06-21 09:24:31 +00:00
package:
stage: Package
dependencies:
- test
script:
- nix-shell --pure --run "mvn --no-transfer-progress -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp clean package -Pproduction"
artifacts:
paths:
2021-07-12 09:43:34 +00:00
- target/typicalc-1.0-SNAPSHOT.jar