diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 0000000000..20aa4fae12 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,23 @@ +version: v1.0 +name: Build & Test +agent: + machine: + type: e1-standard-4 + os_image: ubuntu1804 + +blocks: + - name: Build & Test + task: + env_vars: + # Set maven to use a local directory. This is required for + # the cache util. It must be set in all blocks. + - name: MAVEN_OPTS + value: "-Dmaven.repo.local=.m2" + jobs: + - name: Build & Test + commands: + - sem-version java 11 + - checkout + - cache restore maven + - mvn scoverage:report + - cache store maven .m2