-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathrun
More file actions
executable file
·30 lines (20 loc) · 785 Bytes
/
run
File metadata and controls
executable file
·30 lines (20 loc) · 785 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
set -e
if [ "$TRAVIS" = "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] ; then
echo "travis job push to om website"
cd ..
rm -rf OpenMath.github.io.git
echo clone
git config --global user.email "dpcarlisle@gmail.com"
git config --global user.name "Travis CI"
git config --global push.default simple
git clone https://$ghauth@github.com/OpenMath/OpenMath.github.io.git
cd CDs
./make-all
cd ../OpenMath.github.io
NEW_MSG=`echo "$TRAVIS_COMMIT_MESSAGE" | sed -e 's/#/iss./g' -e 's/[*?]//g'`
git add --no-all cd/*.{html,ocd,omcd} cdgroups/*.{cdg,html} sts/*.{sts,html}
git commit -a -m "from travis ci: $NEW_MSG" || echo no changes
git push
else
echo skipping copying to website
fi