forked from ObeoNetwork/UML-Designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (93 loc) · 3.74 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
language: java
jdk: oraclejdk8
env:
global:
- MAVEN_OPTS="-XX:MaxPermSize=512m"
- secure: "KpzAMqnf5+K5PNmZbcoiaSjWS//sVkPlbjrpb662rrkQcZHslqnAVmy2h+OsSaA6pefhRpzrSmys9vu7Ou4ZPNOBgxlmePOUl+MfEXOe+9EO3G6GLooyvzzk/9rsOYuHMiM6hrJZsPWF2NyIibElqE/l6YKuTUH9XOWnVbGZ+oY="
sudo: false
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
# Build uml designer
- mvn clean verify
# Build uml designer products
- mvn clean package -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
deploy:
# Deploy nightly on s3
- 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: 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=