-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·37 lines (28 loc) · 966 Bytes
/
deploy.sh
File metadata and controls
executable file
·37 lines (28 loc) · 966 Bytes
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
cd application/
mvn nbm:build-installers -q
cd target/
cp *.exe ../../
cp *.tgz
cp *.sh
cd ../../
mv *.exe limo.exe ||true
mv *macosx.tgz limo.macosx.tgz ||true
mv *linux.sh limo.sh ||true
mvn nbm:autoupdate -P \!all,nbm -q
echo -e "Starting to update modules\n"
#copy data we're interested in to other place
cp -R target/netbeans_site $HOME/update
#go to home and setup git
cd $HOME
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis"
#using token clone gh-pages branch
git clone --quiet --branch=gh-pages https://${GH_PAGES}@github.com/LogisticsImpactModel/LIMO.git gh-pages > /dev/null
#go into diractory and copy data we're interested in to that directory
cd gh-pages
cp -Rf $HOME/update/* .
#add, commit and push files
git add -f .
git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages"
git push -fq origin gh-pages > /dev/null
echo -e "Done magic with updates\n"