-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-gh.sh
More file actions
37 lines (23 loc) · 952 Bytes
/
update-gh.sh
File metadata and controls
37 lines (23 loc) · 952 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
35
36
37
if [ "$TRAVIS_COMMIT_MESSAGE" != "Travis build pushed to Matrix3 master" ]; then
echo -e "Starting to update Matrix 3 master\n"
cp -R test* $HOME
cp -R time* $HOME
cp -R CompPlot* $HOME
cd $HOME
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis"
git clone --quiet --branch=master https://${TOKEN}@github.com/Esmae/Matrices3.git master> /dev/null
today=$(date +%Y-%m-%d_%H-%M)
mv testIJK testIJK."$today"
mv testIKJ testIKJ."$today"
cp -Rf $HOME/test* master/data
cp -Rf $HOME/CompPlot* master/figures
#need to change the python script if change the name of the folder the clone is going into (currently it's called master)
chmod +x timePlot.py
python timePlot.py
cd master
git add -f .
git commit -m "Travis build pushed to Matrix3 master"
git push -fq https://${TOKEN}@github.com/Esmae/Matrices.git master > /dev/null
echo -e "Success? \n"
fi