forked from LorenzoBettini/edelta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (46 loc) · 1.52 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
language: java
# So that SonarCloud can see the whole history
git:
depth: false
matrix:
fast_finish: true
include:
# always build this environment
- os: linux
dist: xenial
jdk: openjdk11
services:
- xvfb
env: ADDITIONAL="-Pjacoco,build-ide,test-ide,run-its coveralls:report sonar:sonar"
# only on PR, or after merging a PR
- os: osx
osx_image: xcode10.1
jdk: openjdk11
env: ADDITIONAL="-Pbuild-ide,test-ide,run-its"
if: type IN (pull_request) OR commit_message =~ /^Merge pull request/
addons:
sonarcloud:
organization: "lorenzobettini-github"
cache:
directories:
- '$HOME/.m2'
- '$HOME/.sonar/cache'
install: true
before_install:
# - echo "MAVEN_OPTS='-Xmx768m -Xms256m -Xss1m'" > ~/.mavenrc
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- echo $JAVA_HOME
before_script:
- find $HOME/.m2/repository -name "*edelta*" -exec rm -rf {} \+ || true
# Build on MacOSX is triggered only for pull requests and merge of pull requests
script:
- ./mvnw -f edelta.parent/pom.xml -U clean verify $ADDITIONAL
# to show active profiles
# ./mvnw -f edelta.parent/pom.xml -N -Dtycho.mode=maven help:active-profiles
before_cache:
- find $HOME/.m2/repository -name "*edelta*" -exec rm -rf {} \+
after_success:
- find ./edelta.parent/edelta.ui.tests/target/ -name "*.log"
#after_failure:
# - find ./edelta.parent/*/target/work/ -name "*.log" -exec cat {} \;
# - find ./edelta.parent/*/target/it/ -name "*.log" -exec cat {} \;