forked from eclipse-sw360/sw360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (61 loc) · 1.77 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
60
61
62
63
64
65
66
# -----------------------------------------------------------------------------
# Copyright Siemens AG, 2016-2017.
# Copyright Bosch Software Innovations GmbH, 2017.
# Part of the SW360 Portal Project.
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# initial author: [email protected]
# -----------------------------------------------------------------------------
sudo: required
dist: trusty
language: java
jdk: openjdk8
addons:
apt:
packages:
- docker-ce
services:
- docker
cache:
apt: true
directories:
- $HOME/.m2
- /tmp/
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y couchdb
- sudo service couchdb restart
- ./scripts/install-thrift.sh --no-cleanup
env:
GIT_COMMIT_COUNT="$(git rev-list `git rev-list --tags --no-walk --max-count=1`..HEAD --count)"
MVN_ARGS="package"
install:
mvn dependency:resolve || true
script:
mvn --fail-at-end $MVN_ARGS
matrix:
include:
- name: mvn package -Pci -Dcount=$GIT_COMMIT_COUNT
env: MVN_ARGS="package"
- name: mvn validate -Pci -Dcount=$GIT_COMMIT_COUNT
env: MVN_ARGS="validate"
before_install:
- name: mvn dependency:analyze
env: MVN_ARGS="dependency:analyze -DfailOnWarning"
install: mvn package -DskipTests
- name: check for license headers
before_install: true
install: true
script: .travis/testForLicenseHeaders.sh
# the following job sadly runs into timeout
# - name: test docker install file
# before_install: true
# install: true
# script: scripts/compileWithDocker.sh
allow_failures:
- name: mvn dependency:analyze