-
Notifications
You must be signed in to change notification settings - Fork 0
/
push.sh
44 lines (41 loc) · 1.25 KB
/
push.sh
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
#!/bin/sh
git config user.email "[email protected]";
git config user.name "LakshmiMekala"
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cd builds/linux/"${TRAVIS_BUILD_NUMBER}"/recipe1-linux-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe2-linux-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe3-linux-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe4-linux-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
git stash;
git checkout master;
git add .;
git commit -m "uploading binaries-${TRAVIS_BUILD_NUMBER}";
git push --set-upstream origin master;
fi
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
cd builds/mac/"${TRAVIS_BUILD_NUMBER}"/recipe1-osx-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe2-osx-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe3-osx-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
cd recipe4-osx-"${TRAVIS_BUILD_NUMBER}";
rm -r pkg mashling.json src vendor;
cd ..
git stash;
git checkout master;
git add .;
git commit -m "uploading binaries-${TRAVIS_BUILD_NUMBER}";
git push --set-upstream origin master;
fi