forked from SonarOpenCommunity/sonar-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (51 loc) · 2.45 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
language: java
jdk:
- oraclejdk8
- openjdk7
env:
- SONARHOME=/tmp/sonarqube-4.5.6
# - SONARHOME=/tmp/sonarqube-5.0.1
- SONARHOME=/tmp/sonarqube-5.1.2
# - SONARHOME=/tmp/sonarqube-5.2
- SONARHOME=/tmp/sonarqube-5.3
- SONARHOME=/tmp/sonarqube-5.4
matrix:
fast_finished: true
# allow_failures:
# - env: SONARHOME=/tmp/sonarqube-5.4
before_install:
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
- 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-4.5.6.zip
- unzip -qq sonarqube-4.5.6.zip
# - travis_retry wget -q http://downloads.sonarsource.com/sonarqube/sonarqube-5.0.1.zip
# - unzip -qq sonarqube-5.0.1.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.1.2.zip
- unzip -qq sonarqube-5.1.2.zip
# - travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.2.zip
# - unzip -qq sonarqube-5.2.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.3.zip
- unzip -qq sonarqube-5.3.zip
- travis_retry wget -q https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.4.zip
- unzip -qq sonarqube-5.4.zip
- travis_retry wget -q http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip
- unzip -qq sonar-runner-dist-2.4.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-runner-2.4/bin TestDataFolder=~/build/SonarOpenCommunity/sonar-cxx/integration-tests/testdata behave --no-capture
after_failure:
- cat $SONARHOME/logs/sonar.log
- find . -name "*.log" | xargs cat