2019-09-12 17:18:22 +02:00
|
|
|
version: v1.0
|
|
|
|
name: Build & Test
|
|
|
|
agent:
|
|
|
|
machine:
|
|
|
|
type: e1-standard-4
|
|
|
|
os_image: ubuntu1804
|
2019-10-03 17:05:12 +02:00
|
|
|
execution_time_limit:
|
|
|
|
minutes: 15
|
2019-09-12 17:18:22 +02:00
|
|
|
|
|
|
|
blocks:
|
|
|
|
- name: Build & Test
|
|
|
|
task:
|
|
|
|
secrets:
|
|
|
|
# This needs to have the same name as the secret entry configured on semaphore dashboard.
|
|
|
|
- name: Codecov upload token
|
|
|
|
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:
|
2020-04-30 11:56:44 +02:00
|
|
|
# configure file limits
|
|
|
|
- ulimit -S -n 1024000
|
|
|
|
- echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
|
2019-09-12 17:18:22 +02:00
|
|
|
- sem-version java 11
|
|
|
|
- checkout
|
|
|
|
- cache restore maven
|
|
|
|
- mvn scoverage:report
|
|
|
|
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
|
|
|
|
- cache store maven .m2
|