forked from ObeoNetwork/UML-Designer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With Travis, we : * generate the documentation * copy the documentation to the eclipse help plugin * build the nightly update-site * build the nightly bundles * promote the nightly update-site, target platform and bundles under s3 * if a tag is set the deployment releases the build on s3
- Loading branch information
Showing
5 changed files
with
120 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /usr/bin/env sh | ||
UPDATE_SITE_DIR=packaging/org.obeonetwork.dsl.uml2.update/target/ | ||
TP=releng/org.obeonetwork.dsl.uml2.target/*.tpd | ||
BUNDLE_DIR=packaging/org.obeonetwork.dsl.uml2.product/target/products/*.zip | ||
DEPLOY_LOCAL_DIR=$1 | ||
echo "Prepare deploy local dir = ${DEPLOY_LOCAL_DIR}" | ||
# Create nightly folder | ||
mkdir $DEPLOY_LOCAL_DIR | ||
# Copy update-site and target platform to deploy local dir | ||
cp -r $UPDATE_SITE_DIR/repository $DEPLOY_LOCAL_DIR | ||
cp -r $UPDATE_SITE_DIR/*.zip $DEPLOY_LOCAL_DIR | ||
cp -r $TP $DEPLOY_LOCAL_DIR | ||
echo "ls ${DEPLOY_LOCAL_DIR}" | ||
ls $DEPLOY_LOCAL_DIR | ||
# Create bundles folder | ||
mkdir $DEPLOY_LOCAL_DIR/bundles | ||
# Copy bundles | ||
cp -r $BUNDLE_DIR $DEPLOY_LOCAL_DIR/bundles | ||
echo "ls ${DEPLOY_LOCAL_DIR}/bundles" | ||
ls $DEPLOY_LOCAL_DIR/bundles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
set -e | ||
if [ $TRAVIS_PULL_REQUEST == 'false' ] | ||
then | ||
echo "Build $TRAVIS_JOB_NUMBER" | ||
echo "Git: $TRAVIS_COMMIT [$TRAVIS_BRANCH]" | ||
echo "Root dir: $TRAVIS_BUILD_DIR" | ||
cd $TRAVIS_BUILD_DIR | ||
echo "Promote umldesigner.org web site -- Start" | ||
echo "Clone UML Designer repo" | ||
git clone https://$GITHUB_TOKEN@github.com/ObeoNetwork/UML-Designer.git -b gh-pages --quiet | ||
cd UML-Designer/ | ||
|
@@ -13,9 +16,14 @@ echo "Copy new generated web site" | |
cp -r ../documentation/_site/* . | ||
ls | ||
rm -rf ../documentation/_site/ | ||
echo "Promote umldesigner.org web site -- End" | ||
git config user.email "[email protected]" | ||
git config user.name "Mélanie Bats" | ||
git status | ||
git add . | ||
git commit -m "Promoting a new website for https://github.com/ObeoNetwork/UML-Designer/commit/$TRAVIS_COMMIT [$TRAVIS_BRANCH]" | ||
git commit -m "Promoting new website for https://github.com/ObeoNetwork/UML-Designer/commit/$TRAVIS_COMMIT [$TRAVIS_BRANCH]" | ||
git status | ||
git push origin gh-pages --quiet &>/dev/null | ||
|
||
echo "Build promoted." | ||
fi |