-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
78 lines (66 loc) · 3.91 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
78
# Build script for Travis CI
#
# use fast-boot container-based hosts
dist: xenial
# no need to check for oracle's java
language: java
jdk: openjdk8
# speed up builds by caching maven local repository
cache:
directories:
- "$HOME/.m2/repository"
# as agreed in our SOP
branches:
only:
- master
- development
# added to make logs look cleaner, crisper, certified fresh
before_install: unset _JAVA_OPTIONS
# speed up builds by telling Travis that we don't need any special "installation"
install: true
# 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 install' locally, which covers all phases)
script: mvn --quiet --activate-profiles !development-build,!release-build --settings .travis.settings.xml clean cobertura:cobertura install
# upload code coverage report, generate maven site (javadocs, documentation, static code analysis, etc.)
after_success:
- bash <(curl -s https://codecov.io/bash)
- mvn --quiet --activate-profiles !development-build,!release-build --settings .travis.settings.xml site
# 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
# artifact will be installed in our testing instance if it is a .war file
- skip_cleanup: true
provider: script
script: mvn --quiet --activate-profiles development-build,!release-build --settings .travis.settings.xml deploy
on:
branch: development
condition: '"$TRAVIS_EVENT_TYPE" = "push"'
# as agreed in our SOP, tagging a commit on the master branch will upload to our maven repository
# after validating the artifact has a proper release version
# artifact will be installed in our testing instance if it is a .war file
- skip_cleanup: true
provider: script
script: mvn --quiet --activate-profiles !development-build,release-build --settings .travis.settings.xml deploy
on:
branch: master
condition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lg0xFlR2SH/vqr+Oq8G37wAbEJmMhWI1Pz/U7ntydVc7XMxpPsn+3jm97PxjPMSmUHmuGHgxzDmrmUXAPA16pGpbvmTtSojqPX/oENPwvgB66rmHwOod50Lv46pLUnMJtScZL1ZUro9Ny2neGOFJ5kr9HDCCpfZnu3yc0BZ/EZvUEBtM94JCGs8nYa7Igx09YXo/1vFdfSHAjqBiOxcOzXdSe9BGu/ylQgz9jebBvBtMjgRxJ7rOmog1pw//YgtFM0QP5HGz28iBH/LtSRWncjOk/0ij9E3uueFq6xIwJgwykWJAlptOpO+4lUyS748OmE/1rsRJJnNG6ahYttzyhtiti4="
# change according to your needs, but we recommend to deactivate email notifications
# for now, we configured Travis to send a notification to the #travis-ci channel
notifications:
email:
on_success: never
on_failure: never
slack:
on_success: never
on_failure: always
# edit the following section if you want to get slack notifications
rooms:
- secure: "***"