forked from SonarOpenCommunity/sonar-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (44 loc) · 1.82 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
language: java
jdk:
- oraclejdk8
env:
- SONARHOME=/tmp/sonarqube-5.6.3
- SONARHOME=/tmp/sonarqube-6.0
- SONARHOME=/tmp/sonarqube-6.1
matrix:
fast_finished: true
# allow_failures:
# - env: SONARHOME=/tmp/sonarqube-6.1
# shorten the VM hostname with the new workaround
# https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
addons:
hosts:
- myshorthost
hostname: myshorthost
before_install:
- cat /etc/hosts # optionally check the content
- travis_retry sudo apt-add-repository -y ppa:boost-latest/ppa
- travis_retry sudo apt-get -qq update
- travis_retry sudo apt-get -qq install boost1.55
install:
- cd /tmp
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.6.3.zip
- unzip -qq sonarqube-5.6.3.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.0.zip
- unzip -qq sonarqube-6.0.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.1.zip
- unzip -qq sonarqube-6.1.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-2.8.zip
- unzip -qq sonar-scanner-2.8.zip
- cd -
before_script:
- travis_retry sudo pip install -q requests
- travis_retry sudo pip install -q behave
- travis_retry sudo pip install -q colorama
script:
- mvn install -DskipTests=true
- mvn test
- RAILS_ENV=production PATH=$PATH:/tmp/sonar-scanner-2.8/bin TestDataFolder=~/build/SonarOpenCommunity/sonar-cxx/integration-tests/testdata behave --no-capture
after_failure:
- cat $SONARHOME/logs/sonar.log
- find . -name "*.log" | xargs cat