This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SnapEdit/.gitlab-ci.yml
2023-03-09 11:56:31 +01:00

43 lines
786 B
YAML

variables:
MAVEN_CLI_OPTS: "--batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- frontend/node_modules/
build_job:
stage: build
before_script:
- export PATH=/opt/users/Node.js/bin:$PATH
script:
- mvn $MAVEN_CLI_OPTS compile
artifacts:
expire_in: 10 min
paths:
- target/
- "*/target"
tags:
- shell
test_job:
stage: test
before_script:
- export PATH=/opt/users/Node.js/bin:$PATH
script:
- find . -name "*.class" -exec touch {} \+
- mvn $MAVEN_CLI_OPTS test
tags:
- shell
### cleanup project for security issues
cleanup:
stage: .post
script:
- MYDIR=$(pwd) ; rm -rf $MYDIR ; mkdir $MYDIR
- cd ; tree -d -L 5
when: always
tags:
- shell