-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (65 loc) · 4.92 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Build script for Travis CI
#
# use xenial distribution
dist: xenial
# no need to check for oracle's java
language: java
jdk: openjdk8
# speed up builds by caching maven local repository
# we are also using python via conda/pip
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.cache/pip"
- "$HOME/miniconda3"
# as agreed in our SOP
branches:
only:
- master
- development
# Travis treats pushed tags as branches
- /^[vV]?\d+\.\d+\.\d+$/ # matches e.g., v1.2.3, 1.2.3, V1.2.3
# added to make logs look cleaner, crisper, certified fresh
before_install: unset _JAVA_OPTIONS
# dependencies for report generation (use cache to speed up builds)
install:
- $HOME/miniconda3/bin/conda --version || ./.install-reports-dependencies.sh
# check if we need to add a license file for Vaadin charts
before_script: if [ "$VAADIN_CHARTS_LICENSE_CODE" != "" ]; then
echo "$VAADIN_CHARTS_LICENSE_CODE" > ~/.vaadin.charts.developer.license;
fi;
# as agreed in our SOP, build everything (don't deploy, just try to 'mvn package' locally, which covers unit tests)
script: mvn --quiet --activate-profiles !development-build,!release-build --settings .travis.settings.xml clean cobertura:cobertura package
# upload code coverage report, generate maven site (javadocs, documentation, static code analysis, etc.)
after_success:
- bash <(curl -s https://codecov.io/bash)
# upload to maven
deploy:
# as agreed in our SOP, builds on development branch will deploy to our maven repository after validating
# the artifact has a proper SNAPSHOT version
# make sure to skip integration tests! (using -DskipITs)
- skip_cleanup: true
provider: script
script: mvn --quiet --activate-profiles development-build,!release-build --settings .travis.settings.xml deploy -DskipITs
on:
branch: development
condition: '"$TRAVIS_EVENT_TYPE" = "push"'
# as agreed in our SOP, releases are performed by tagging commits,
# the version string and version of dependencies are validated (no snapshots allowed)
- skip_cleanup: true
provider: script
script: mvn --quiet --activate-profiles !development-build,release-build --settings .travis.settings.xml deploy -DskipITs
on:
condition: '"$TRAVIS_EVENT_TYPE" = "push"'
tags: true
# activate our conda environment, generate maven site and upload reports to gh-pages branch
after_deploy:
- echo ". $HOME/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc && source ~/.bashrc && conda activate qbic-docs-build
- mvn --quiet --activate-profiles !development-build,!release-build --settings .travis.settings.xml site
- ./.generate-reports.py $TRAVIS_BRANCH $TRAVIS_REPO_SLUG "[skip travis] Updated gh-pages" "This commit was performed from travis-ci.com using a personal access key" "Build ID $TRAVIS_BUILD_ID" "Job ID TRAVIS_JOB_ID" "Branch $TRAVIS_BRANCH" "Log of this build found at $TRAVIS_JOB_WEB_URL"
# credentials
env:
global:
- secure: "BGpOLUHkaoXC553ieHZF+V9wzH35saNoABB/tk9l7CIjdQdTDoCleolXvDb0yA5ZV/4F6Kn+NHyefAiNxPYeWfPHo1+Nb2jfX35v4A2Jiu1sAamp+g5rn7eRL3zJHBhkD8dkLW1YOKKS3+mKO2wKN1WYP3oDeZ2GCZFPqGWX1W64KohYa6kNQzt5yAhMfseiEZNNY4bsErkz87xoUSw3gdwCUTrKGesKHxT8SfRsxcrFxjIm0yv0uQ8FvUlyeKYLmtiy1AYojwtWFfbSIPcMl5++U1bh6+7e5tIr/evPBQ1b8i1OU5K1t1TD5QW6j+T/YHbAokrmxTv1ya5gpttma+931UJrQAOmH0EotLqv+/A1uNymOStOoibOf3pLCHtGQyycXuflR2rqAuxcbj++a+Nx2H4iXPAEus9OoHruS7wS9c3voS4qgolkSDqTZEn7duJPqJPQi52OnCSGJwGhpRNyfEjpyiMMdsBalZdA52sVKMgJRoaBubRqaRZt9qlVpeBu5Z+HyrM6CGP8uq0n9s28pDkOVlSY78lOOnbBmXpMXqZtjhffqjKY5iRIDeNCz8VGNNwU6LV0PXiz6hk70hOPl/TkGTvUKhN6aphllb9qVcjGGJb1zYzB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