-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpush.sh
38 lines (32 loc) · 939 Bytes
/
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
#!/bin/sh
setup_git() {
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
}
commit_logs() {
git checkout master
mkdir -p reports/maven
mkdir -p reports/pmd
mkdir -p reports/test
mv ./target/surefire-reports/*.txt reports/test
mv ./target/cpd.xml reports/pmd
mv ./target/pmd.xml reports/pmd
rm -rf reports/jacoco
mv ./target/site/jacoco/ reports/jacoco
mv maven_phase1.log reports/maven
mv maven_phase2.log reports/maven
git add reports/pmd/cpd.xml
git add reports/pmd/pmd.xml
git add reports/test/*.txt
git add reports/jacoco/
git add reports/maven/maven_phase1.log
git add reports/maven/maven_phase2.log
git commit -m "Travis CI log [skip ci]"
}
upload_files() {
git remote set-url origin https://Zichuan-Wang:[email protected]/Zichuan-Wang/ScoreOverFlow.git
git push --quiet --set-upstream origin master
}
setup_git
commit_logs
upload_files