-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (41 loc) · 1.73 KB
/
appveyor.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
44
45
46
47
48
49
50
51
52
image:
- ubuntu-20.04-amd64
environment:
my_secret:
secure: HvbR1johj6/PEoG0EyhFmQ==
my_salt:
secure: SgCRJOf9IjDJiu5qRieFGg6dYvpJV+V1+oUFwKV7E2gQNggJ3s2uDKRoI3g/HqtREwYwdZZPZQ3KJPf+obbpCw==
DOCKERHUB_PASS:
secure: +nZQV9YjOpjK8eJvYeykaKx7VxsSMyBjSbzjB6YbmrW38cM5Ol7Qn7i19vyVlhKv
SONAR_TOKEN:
secure: mN5Yef+d81h3iZSs0/Uz5xA9tf6C4Q1ZU4aN7dFEAAjDreFYEkMnYW5PLOUCH0Ko
matrix:
- JDK_VERSION: adoptopenjdk-15-hotspot-amd64
# branches to build
#branches:
# removed so it builds all
install:
- sudo java_select $JDK_VERSION
# Use dockerized PostgreSQL 12 for the integration tests.
# - docker run --name pgsql -d -p 5432:5432 -e POSTGRES_USER=appveyor -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=sample postgres:13
build_script:
# Build a JAR from the sources.
- gradle --console=plain build
test_script:
# Run tests and CheckStyle audit.
- gradle --console=plain check
artifacts:
# Collect all JARs that have been built and upload them to the CI server. Can be downloaded via
# the UI. If you want to keep them longer than 6 months, deploy to Artifactory (not shown).
- path: "build/libs/*.jar"
on_finish:
# Search the 'build' folder for all JUnit test reports and upload them to the CI server.
- sh: |
find "$APPVEYOR_BUILD_FOLDER/build" -type f -name 'TEST*.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.cloudlab.zhaw.ch/api/testresults/junit/$APPVEYOR_JOB_ID"
gradle sonarqube -Dsonar.projectKey=ch.zhaw.pm4.loganalyser -Dsonar.host.url=https://sonar.zhaw.neat.moe -Dsonar.login=$SONAR_TOKEN; exit 0
deploy_script:
- sh: ./deploy.sh
# We do not want to build git tags.
skip_tags: true
# Use integers as build versions (1, 2, 3, …) instead of 1.0.X.
version: "{build}"