-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
58 lines (48 loc) · 2.47 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
dist: trusty
sudo: required
# SonarQube
# See https://docs.travis-ci.com/user/sonarqube/
addons:
sonarqube:
token:
# See https://travis-ci.org/eclipse/richbeans/settings, here be variables (ask [email protected] for permission to see)
# SONAR_TOKEN = SONAR_GITHUB_TOKEN = The sonar token at https://sonarqube.com/account/security/
secure: $SONAR_TOKEN
github_token:
# See https://github.com/settings/tokens to create a token for GITHUB_READ_REPO
# GITHUB_READ_REPO = https://github.com/settings/tokens sonarqube-travis token ('repo' and 'admin:repo_hook' permissions)
secure: $GITHUB_READ_REPO
language: java
# Makes build faster to cache maven things.
cache:
directories:
- .autoconf
- $HOME/.m2
services:
- docker
# whitelist
branches:
only:
- master
jdk:
- oraclejdk8
before_install:
# Start XVFB, this allows SWTBot to execute in tests.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start as per the travis docs
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
# Run maven. This happens automatically and adding it again makes the build longer.
script:
- mvn clean install surefire:test -Dtest.includes=org/eclipse/richbeans/**/Suite.java -Dlog4j.configuration=log4j.properties
- sonar-scanner
# Added deploy back to github
# This should publish to the tag on master called 'snapshot'
deploy:
provider: releases
api_key:
secure: I5xPlT1AnFLRm89JeBKVAZdq52RFtxwu21BVgsKuGZ6TU50avgq5A5mx+0RSlj4qO3IsmqcG6Sf5psPvR7DOfFiGIViqANaaYp6N6yGFq1hMSgAOsm4M9CfTA94tpn/eb8EIPymvB/MCeyQjV+AF62BC1KAXLbTgIWr/neux0d4zeM16aimfGtjKvX9qcbFGnepgrU+WhBr2M1YEQvVa7Nzo2ulOkt2lcZKslNu+mjWGyIpTLepveQKD7gx425jALmo60Qpr8NkNkH6WxiNdKBhCKHBp5mBlPWLfZTY9F40ubSpLPvbMFnXsfryOxbeue1UoOKvnoKI3u+B57kTJrBcC0tjXdPaTD9SXaEYHK00VnkW1y+1IXAg/wBBbBMZNnMsTiElqT9rAwq3gz1YZYKMuzBLTLlrg134eXghFvaoKemZZGQbhkziZJ7aHhZmkNMptlu1GVO8/rOhXXcCFBwVaz0TAgmHRCvNrw+6uqwHRRpq85D64vfBjhicpVasQg5bLU+pOtxmrgvU+KI2dlVf0VLWp8yfmtNJDDNtm6gJ4xM/ESRKb+JUb1+YqXnYuGSFc7/6cmHOsDzwaOYmYScXNX1e7U61Ad4Y6Dup21b3Vkmb5xs7/MGQpCMYS4X+Jj/ulS2S0S6Gv58wA241f12NOuQxaNJAr2yJpQ/2pKAI=
file: /home/travis/.m2/repository/org/eclipse/org.eclipse.richbeans.repository/1.0.0-SNAPSHOT/org.eclipse.richbeans.repository-1.0.0-SNAPSHOT.zip
on:
repo: eclipse/richbeans
branch: master