forked from mtrdesign/mtr-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·38 lines (29 loc) · 774 Bytes
/
dev.sh
File metadata and controls
executable file
·38 lines (29 loc) · 774 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
38
#!/bin/bash
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin/travis
function publish {
echo -e "\e[33mGo to gh-pages branch\e[39m"
git checkout gh-pages
git merge master
echo -e "\e[33mCleaning...\e[39m"
sudo rm -rf node_modules
sudo rm -rf scripts
sudo rm -rf images
sudo rm -rf package.json
sudo rm -rf Gruntfile.js
sudo rm -rf .coveralls.yml
sudo rm -rf .travis.yml
sudo rm -rf bower.json
sudo rm -rf karma-travis.conf.js
sudo rm -rf karma.conf.js
echo -e "\e[33mPushing...\e[39m"
git add -A
git commit
git push origin gh-pages
git checkout master
echo -e "\e[33mPublishing finished successfully\e[39m"
}
function test {
travis restart -r mtrdesign/mtr-datepicker
}
cmd=$1
$cmd "$@"