This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
61 lines (52 loc) · 2.81 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
#
#
# Copyright 2016 The Symphony Software Foundation
#
# Licensed to The Symphony Software Foundation (SSF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
language: java
before_install:
- "curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash"
- "nvm install 6.10"
- "nvm use 6.10"
- "npm update -g npm"
install: true
jdk:
- oraclejdk8
env:
global:
- secure: "Cj99DDe9Y8Fbqohem5ihSIVzbmVVzvcsBB6dt85yWGeGNFVvnjQYq3HWFc8IYHcuTyj/9uZZFAXtufeqWaoo/7PsMbe+xpvXfTv5kRIH+JHAdtgYMbss5fFN3nBauDjSV4Ta37ryM8HcRC69G9C8HLbXKDP7+13gseKjFpQaWNHBe2Wgd6cf//io1GzPK47aVmDpvcnCUv0BfEbZE6JQdX7kp9Z0aM/KHgfz6BRmFdp31WkPWFzDxyGmzV4SDjWWr5Ukvu4IESxAjEAFpQFHYsxJZftFDsg7tx0XaavGB3efOHPU9WRdtjBSOILxA6bQehrNTQZe0sarFBEJyWClYtJWdqYtZZi9pN19GkI43yryP3UK9DoV0CKIGDIH4arTyHcTon1uDfgrzBUM3pbiuwNOLR1o7tMkucZfQp5PvPaqTCfWZXoiuqCFX/2c+tQo83F2Kr+4t4RurlpH7TXT1jPUwMR+/09XRDjqYcL2QeHmdm6Xs+VGYuhBIH9gzYZz7mLhDNJq7wNh2JZpCyfWWLpoe2qGdnKKelM953Exo2EfN99BrJ8WLQ7vGqKaRdkaeoSQbqEVqfZvs/WEF2RfVHANFATQd4sQlnYEZow9ehB0bWM4YgzXI+rwbdetZxxP3YEk9nGyrZX9bkKAWGRt8rZG7raKVl9VXIs1fmP06yU="
addons:
coverity_scan:
project:
name: "symphonyoss/App-Integrations-Github"
description: "Build submitted via Travis CI"
notification_email: "integrations-team@symphony.com"
build_command_prepend: "mvn clean"
build_command: "mvn -Denv=dev -DsymphonySkipUnitTests=true install"
branch_pattern: "rc-current-*"
script:
- "if [[ \"$TRAVIS_PULL_REQUEST\" = \"false\" && $TRAVIS_BRANCH =~ dev ]]; then mvn clean deploy -Pwhitesource -Pcobertura -DtransitiveDependencies=true --settings settings.xml ; fi"
- "if [[ \"$TRAVIS_PULL_REQUEST\" != \"false\" ]]; then mvn clean package -Pcobertura; fi"
- npm install
# Cannot run on external PRs due to https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
- "if [[ $TRAVIS_PULL_REQUEST -eq 'false' ]]; then npm run whitesource; fi;"
# Break the build, if any Whitesource policy violation is found
- "if [[ -e 'ws-log-policy-violations.json' ]]; then echo 'Found Whitesource Policy violation, build failed.' ; exit -1; fi;"
after_success:
- bash <(curl -s https://codecov.io/bash)