forked from ObeoNetwork/UML-Designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
130 lines (124 loc) · 4.66 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
language: java
jdk: oraclejdk8
env:
global:
- MAVEN_OPTS="-XX:MaxPermSize=512m"
- JDK_VERSION="8.0.112"
- ZULU_VERSION="8.19.0.1"
- ZULU_JDK="zulu$ZULU_VERSION-jdk$JDK_VERSION"
- ZULU_JDK_URL="http://cdn.azul.com/zulu/bin/$ZULU_JDK"
sudo: required
before_script:
- gem install jekyll --version '= 1.5.1'
- gem install RedCloth
script:
# Build documentation web site
- cd documentation
- ls
- jekyll build
- ls
- cd ../
# Integrate the documentation to Eclipse
- rm -rf plugins/org.obeonetwork.dsl.uml2.design.doc/html
- cp -r documentation/_site plugins/org.obeonetwork.dsl.uml2.design.doc/html
- ls plugins/org.obeonetwork.dsl.uml2.design.doc/html
# Download the JREs
- wget $ZULU_JDK_URL-linux_x64.tar.gz
- wget $ZULU_JDK_URL-win_x64.zip
- wget $ZULU_JDK_URL-macosx_x64.zip
- ls
# Extract the JREs
- tar -C packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/linux-64/ -xf $ZULU_JDK-linux_x64.tar.gz
- cd packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/linux-64/
- ls
- cd $ZULU_JDK-linux_x64
- ls
- mv jre/* ../jre
- ls ../jre/
- cd ../
- rm -rf $ZULU_JDK-linux_x64
- ls
- cd ../../../
- rm -rf $ZULU_JDK-linux_x64.zip
- ls
- unzip $ZULU_JDK-win_x64.zip ''"$ZULU_JDK"'-win_x64/jre/*' -d packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/win32-64/jre/
- cd packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/win32-64/jre/
- mv $ZULU_JDK-win_x64/jre/* .
- rm -rf $ZULU_JDK-win_x64
- ls
- cd ../../../../
- rm -rf $ZULU_JDK-win_x64.zip
- ls
- unzip $ZULU_JDK-macosx_x64.zip ''"$ZULU_JDK"'-macosx_x64/jre/*' -d packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/macosx/jre/
- cd packaging/org.obeonetwork.dsl.uml2.runtime.product.feature/macosx/jre/
- mv $ZULU_JDK-macosx_x64/jre/* .
- rm -rf $ZULU_JDK-macosx_x64
- cd ../../../../
- rm -rf $ZULU_JDK-macosx_x64.zip
# Build uml designer
- mvn clean verify
# Build uml designer products
- mvn clean verify -f releng/org.obeonetwork.dsl.uml2.product.parent/pom.xml
# Prepare local dirs to deploy: copy repository, bundles and tp
- chmod a+x prepare-deploy-local-dir.sh
- echo "$TRAVIS_TAG"
# Prepare tag dir if it is a tagged build
- if [[ "$TRAVIS_TAG" != "" ]]; then ./prepare-deploy-local-dir.sh $TRAVIS_BUILD_DIR/$TRAVIS_TAG; fi
# Rename the zipped update site to nightly
- mv packaging/org.obeonetwork.dsl.uml2.update/target/org.obeonetwork.dsl.uml2.update-*-SNAPSHOT.zip packaging/org.obeonetwork.dsl.uml2.update/target/org.obeonetwork.dsl.uml2.update-nightly.zip
# Prepare the nightly dir
- ./prepare-deploy-local-dir.sh $TRAVIS_BUILD_DIR/nightly
after_script:
# Promote web site on gh-pages only for master branch
- chmod a+x travis-promote.sh
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./travis-promote.sh; fi
before_deploy: pip install --user awscli
deploy:
# Deploy nightly on s3
- provider: script
script: ~/.local/bin/aws s3 sync ${TRAVIS_BUILD_DIR}/nightly s3://obeo-umldesigner-nightly/${TRAVIS_BRANCH} --region=eu-west-1 --delete
skip_cleanup: true
acl: public_read
on:
branch: master
- provider: s3
access_key_id: AKIAJJVZATSVUD3VGHXA
secret_access_key:
secure: JR+FhCfNYeOp1kg6VsNFxDpXeI0MB27DZyzZ31krTrYhogtn5lPQZoRVc1e7/C/jaZqsbY3RZvjXnZOzTVxOgOV2VqbWGUzTwsnzLATiqtIvlq6MJvwDfaB/zRzYs3aVjss7QiVVsCsYh6rlihD4C3Xn2lRZIRMarTUYbVNYWyk=
bucket: obeo-umldesigner-nightly
local-dir: "${TRAVIS_BUILD_DIR}/nightly"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: "${TRAVIS_BRANCH}"
on:
branch: 5.0.x
- provider: s3
access_key_id: AKIAJJVZATSVUD3VGHXA
secret_access_key:
secure: JR+FhCfNYeOp1kg6VsNFxDpXeI0MB27DZyzZ31krTrYhogtn5lPQZoRVc1e7/C/jaZqsbY3RZvjXnZOzTVxOgOV2VqbWGUzTwsnzLATiqtIvlq6MJvwDfaB/zRzYs3aVjss7QiVVsCsYh6rlihD4C3Xn2lRZIRMarTUYbVNYWyk=
bucket: obeo-umldesigner-nightly
local-dir: "${TRAVIS_BUILD_DIR}/nightly"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: "${TRAVIS_BRANCH}"
on:
branch: 5.0.x_juno_3.8
# Deploy release on s3
- provider: s3
access_key_id: AKIAJJVZATSVUD3VGHXA
secret_access_key:
secure: JR+FhCfNYeOp1kg6VsNFxDpXeI0MB27DZyzZ31krTrYhogtn5lPQZoRVc1e7/C/jaZqsbY3RZvjXnZOzTVxOgOV2VqbWGUzTwsnzLATiqtIvlq6MJvwDfaB/zRzYs3aVjss7QiVVsCsYh6rlihD4C3Xn2lRZIRMarTUYbVNYWyk=
bucket: obeo-umldesigner-releases
local-dir: "${TRAVIS_BUILD_DIR}/${TRAVIS_TAG}"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: "${TRAVIS_TAG}"
on:
tags: true
all_branches: true
repo: ObeoNetwork/UML-Designer
dd:
secure: SVW8lL8L5J7f/AgTRm69vYlOVx+U/grtQM52Ue/ZaHtNhZEuXbz2FmPhMzK3k7Adlqw2vbrzmBe78svbHvMLOuqWGPfcmYlBLeSDQPp8VI6KLpGt+y2UltoSdLKjnXyn6KCerXYm4FTdqxtZDuso52THGNC0Enn3kHv6d9tR4qw=