Added BitBucket and GitLab CIs.

More code cleanup.
This commit is contained in:
Erik C. Thauvin 2020-07-26 02:00:18 -07:00
parent c65204414d
commit 64d2328618
10 changed files with 81 additions and 19 deletions

32
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,32 @@
image: openjdk:11-jdk-slim
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
CI_NAME: "GitLab CI"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- build
- test
build:
stage: build
script: ./gradlew --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
test:
stage: test
script: ./gradlew check
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle