forked from ObeoNetwork/M2Doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.old
160 lines (142 loc) · 5.35 KB
/
.travis.yml.old
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
dist: trusty
language: java
env:
- PROFILE=platform-oxygen,tests
- PROFILE=platform-photon,tests
- PROFILE=platform-2018-12,tests
- PROFILE=platform-2019-12,tests
- PROFILE=platform-2020-03,tests,updatesites
# - PROFILE=platform-2020-12,tests
- PROFILE=platform-sirius-5.1.1,tests
- PROFILE=platform-sirius-6.0.0,tests
- PROFILE=platform-sirius-6.1.3,tests
- PROFILE=platform-sirius-6.2.2,tests
- PROFILE=platform-sirius-6.2.x,tests
- PROFILE=platform-sirius-6.3.5,tests
- PROFILE=platform-sirius-6.3.x,tests
- PROFILE=platform-sirius-6.4.0,tests
- PROFILE=platform-sirius-6.4.x,tests
- PROFILE=platform-capella-5.0.0,tests
jdk:
- oraclejdk8
- oraclejdk11
jobs:
exclude:
# Java 8 only
- jdk: oraclejdk11
env: PROFILE=platform-oxygen,tests
- if: type = cron
jdk: oraclejdk8
env: PROFILE=platform-oxygen,tests
- jdk: oraclejdk11
env: PROFILE=platform-photon,tests
- if: type = cron
jdk: oraclejdk8
env: PROFILE=platform-photon,tests
- jdk: oraclejdk11
env: PROFILE=platform-sirius-5.1.1,tests
- if: type = cron
jdk: oraclejdk8
env: PROFILE=platform-sirius-5.1.1,tests
# Java 11 only
- jdk: oraclejdk8
env: PROFILE=platform-2018-12,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-2018-12,tests
- jdk: oraclejdk8
env: PROFILE=platform-2019-12,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-2019-12,tests
- jdk: oraclejdk8
env: PROFILE=platform-2020-03,tests,updatesites
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-2020-03,tests,updatesites
- jdk: oraclejdk8
env: PROFILE=platform-2020-12,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-2020-12,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.0.0,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-sirius-6.0.0,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.1.3,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-sirius-6.1.3,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.2.2,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-sirius-6.2.2,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.2.x,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.3.5,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-sirius-6.3.5,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.3.x,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.4.0,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-sirius-6.4.0,tests
- jdk: oraclejdk8
env: PROFILE=platform-sirius-6.4.x,tests
- jdk: oraclejdk8
env: PROFILE=platform-capella-5.0.0,tests
- if: type = cron
jdk: oraclejdk11
env: PROFILE=platform-capella-5.0.0,tests
sudo: required
install: true
before_script:
# for RCPTT tests
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
--background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1440x900x16"
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2048m -Xms1024m"
# for the web site
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-install.sh && ./scripts/website-install.sh; fi
# for the MS Word add-in
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-install.sh && ./scripts/word-add-in-install.sh; fi
script:
# Build documentation web site
- mkdir plugins/org.obeonetwork.m2doc.doc/doc
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-build.sh && ./scripts/website-build.sh; fi
# Build MS Word add-in
- mkdir plugins/org.obeonetwork.m2doc.word.addin/dist/
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-build.sh && ./scripts/word-add-in-build.sh; fi
# Java build
- mvn -v
- mvn clean verify -fae -P$PROFILE
- export TAG_OR_BRANCH="${TRAVIS_BRANCH}/nightly"
- if [[ "$TRAVIS_TAG" != "" ]]; then export TAG_OR_BRANCH="${TRAVIS_TAG}"; fi
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/prepare-deploy-local-dir.sh && ./scripts/prepare-deploy-local-dir.sh
$TRAVIS_BUILD_DIR/$TAG_OR_BRANCH; export UPDATE_SITES=true; fi
after_script:
- if [[ "$TAG_OR_BRANCH" != "" ]]; then chmod a+x ./scripts/travis-promote.sh && ./scripts/travis-promote.sh;
fi
deploy:
- provider: s3
access_key_id: AKIAI7GYGSUKTIBLAI6Q
secret_access_key:
secure: A2AARWNQrm5bddsfzArzH8miOVvoTjT/Y1P6CMUHqiwKRE46mYEPqVxy+CIPtVa8SmvFTL/IRxb8zQ8FPBSTasB0vzz94yxtVJvwn+kkPM+z0YdzOfonJo4BjKO+NHzgncOpvBngMqboU5RzS+pqQ6xUhALhHEATCARsYF0NUgsEjGZ8JJJSzAbfQ7oaL6xbuon/72ABJOIQbg9sesq7YFl+/9bHcOl1SU5owF9hIa/b6IB3iEmg1L2vzYP2L/x+BGPwpMkDfRGMUBJByf3e8q6mvPYU/5XVQrqo2WnD9JGQB62OOi/DlRQ0cHxXP9x5iRd1hVqMJZMduAAa5ymK8UOV5h1+xkBFJMQZ3UQbZ3FEG/0rYFEVZ/ynj8H05/nO1DxqTiGSaCIlbF8hEWvcqfoK/cT+v+9i4GJ3jael03Um90U7L2fI098VYJmAuWqcYyNTqDVb5hwD77ULvT2b13vtVAGEJO1h3UoAy4xOMuOCCw3JezAA0UOL3mw2+F9syZ68Sm5yUXRZHuajSzAdpeD3X7tOO4cC6YCvUVkBXRLWozWmI64/6WL/FhNdux/GMlRqWGbxQPg43pZfGs6VQD/p1BGpZTFk9zuQix0UMLPxfvjwkLYt97KK6KmbCv1YE8IedhkdBeVDh9OETPFa5/N9lGxocpraVivYYzmyHDg=
bucket: obeo-m2doc-releases
local-dir: "${TRAVIS_BUILD_DIR}/${TAG_OR_BRANCH}"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: ${TAG_OR_BRANCH}
on:
all_branches: true
repo: ObeoNetwork/M2Doc
condition: $UPDATE_SITES = true