-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
44 lines (43 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: java
os: linux
dist: focal
git:
depth: 10000
jdk:
- openjdk16
services:
- postgresql
# - docker
branches:
except:
- /^v\d+\.\d+\.\d+$/
before_install:
# - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- git fetch --depth=10000
- git config user.email "[email protected]"
- git config user.name "Travis-CI"
- git config url.https://.insteadOf git://
- git checkout -qf $TRAVIS_BRANCH
install:
- echo "skip default gradlew assemble jib"
before_script:
- psql -c 'create database molgenis;' -U postgres
- psql -c "CREATE USER molgenis WITH SUPERUSER PASSWORD 'molgenis';" -U postgres
- psql -c "grant all privileges on database molgenis to molgenis;" -U postgres
addons:
postgresql: "13"
sonarcloud:
organization: "molgenis"
jobs:
include:
- stage: release
script: ./gradlew test jacocoMergedReport sonarqube -Dorg.ajoberstar.grgit.auth.username=${GITHUB_TOKEN} -Dorg.ajoberstar.grgit.auth.password
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
npm: true
yarn: true
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/