forked from zolyfarkas/spf4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (33 loc) · 2.48 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
dist: trusty
language: java
jdk:
- oraclejdk8
before_script:
- "export DISPLAY=:99.0"
script: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dgpg.skip=true install sonar:sonar
before_install:
- echo "MAVEN_OPTS='-Xmx1024m'" > ~/.mavenrc
- sudo apt-get install jq
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/4.0.1/codacy-coverage-reporter-4.0.1-assembly.jar
#$(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install: mvn -B -DskipTests=true -Dmaven.javadoc.skip=true -Dspotbugs.skip=true -Dcheckstyle.skip=true -Dgpg.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "yxnf476UfIBJvx/Sd+YQ9JMGBpEQy2Qp3+N4DfP9WvsKoSMgVTnvbIey5iJxeE6g+bElABd2OoPqoyrpsPYme8saZ8tAr9Mk8cvGRbCqMXUecnaBKqubjXoGPudc45L1RKikqhTz7qHwmmv9/tIMQoTma6mhYKkfBhYxE5ttMb6AyU16ubU+Y42mVC9gJ+NwrBD69qm4auGbzf1fMu1cvZ8sehMUOld/TmDmjRxLWwB3GGYT2SFzGIFO4EMHdPDjUGEpt6YTzIxAnFjhSkNDV8onyrQZcm4Q8tw84DAEOJy2CAsA2cG81EPKl8VrMNUJvNFU4Cr9qk1mkkeMtGz0A/N2lon5jU7lyY+qhnmPQLhg1y14qLky1PIXowJ/LAisRgXNaRSE5u07wzvfwM7s9AwXqjRz1wI97fbDfvZtca/BH9cAnnoT54MIzv5sQGdPjjtYE5E1gigIg5WptDbtgSt9/ocIJQthMhm55j6dA+9Be7Kotzh5ieuUkuGeK+LvViNly2/LtFcSv739marifTUmuJg7WFtFZ7d0OYCm5BYfCX7sgb5ecABW8qZIQ+UVEImIHwwpWWxfaQ+4lqVnFz17cGCaKwPEfSyFB1c75ypvPduY5GYMJXwbOiILecrkpGeL+PYMZKVPxZX8GuSUvq9vNGg6pFOjVlOEo9OQrGQ="
addons:
sonarcloud:
organization: "spfforj"
# coverity_scan:
# project:
# name: "zolyfarkas/spf4j"
# description: "Build submitted via Travis CI"
# notification_email: [email protected]
# build_command_prepend: "mvn clean"
# build_command: "mvn -DskipTests=true -Dgpg.skip=true compile"
# branch_pattern: master
after_success:
- java -jar ~/codacy-coverage-reporter-assembly-latest.jar report -l Java -r ./spf4j-jacoco-aggregate/target/site/jacoco-aggregate/jacoco.xml