forked from Alfresco/share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
108 lines (89 loc) · 2.95 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
os: linux
dist: xenial
language: java
jdk: openjdk11
env:
- TAG_NAME=latest
addons:
firefox: "76.0.1"
git:
depth: false
quiet: true
services:
- xvfb
- docker
cache:
directories:
- $HOME/.m2
# the cache can grow constantly
before_cache:
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-share*
branches:
only:
- master
- /^SP\/.+$/
- /.*\/APPS-.*$/
- fix/travis-wait
env:
global:
# Release version has to start with real version (7.0.0-....) for the docker image to build successfully.
- RELEASE_VERSION=7.0.0-A2
- DEVELOPMENT_VERSION=7.0.0-SNAPSHOT
stages:
- build
- tests
- release
- company_release
jobs:
include:
- name: "White Source"
stage: build
# only on SP branches or master and if it is not a PR
if: fork = false AND (branch = develop OR branch =~ /support\/SP\/.*/ OR branch =~ /.*\/APPS-.*$/) AND type != pull_request
before_install: bash _ci/init.sh
script: travis_wait 30 bash _ci/whitesource.sh _ci/.wss-unified-agent.config
- name: "Source Clear Scan (SCA)"
stage: build
# only on SP branches or master and if it is not a PR
if: fork = false AND (branch = develop OR branch =~ /support\/SP\/.*/ OR branch =~ /.*\/APPS-.*$/) AND type != pull_request
before_install: bash _ci/init.sh
# Run Veracode
install: skip
script: travis_wait 30 bash _ci/source_clear.sh
- name: "Build and Test"
stage: build
before_install: bash _ci/init.sh
script: bash _ci/build.sh
- &test-staging
stage: tests
jdk: openjdk11
before_install: bash _ci/init.sh
install:
- travis_wait 60 bash _ci/start-compose.sh ./packaging/docker/tests/docker-env/docker-compose.yml
- travis_wait 30 bash _ci/wait-for-share-start.sh "http://localhost:8080/alfresco"
- travis_wait 30 bash _ci/wait-for-share-start.sh "http://localhost:8181/share"
script:
- bash _ci/execute_share_web.sh "auth"
addons:
artifacts:
paths:
- alfresco-tas-share-test/target/surefire-reports
- alfresco-tas-share-test/target/reports
target_paths: $TRAVIS_BUILD_NUMBER
- <<: *test-staging
script: bash _ci/execute_share_web.sh "admin-tools"
- <<: *test-staging
script: bash _ci/execute_share_web.sh "AlfrescoConsoles"
- <<: *test-staging
script: bash _ci/execute_share_web.sh "user"
- name: "Release"
stage: release
name: "Push to Nexus"
if: fork=false AND commit_message =~ /\[release\]/ AND branch =~ /^(master|SP\/.+|HF\/.+)$/
before_install: bash _ci/init.sh
script: travis_wait 30 _ci/maven_release.sh
- name: "Company Release"
stage: company_release
if: fork=false AND commit_message =~ /\[trigger company release\]/ AND branch =~ /^(master|SP\/.+|HF\/.+)$/
before_install: bash _ci/init.sh
script: travis_wait 30 _ci/company-release.sh