-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruntests.sh
More file actions
executable file
·33 lines (25 loc) · 875 Bytes
/
runtests.sh
File metadata and controls
executable file
·33 lines (25 loc) · 875 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
cd test-runner
chmod u+x setup.sh
chmod u+x gradlew
./gradlew test
retval=$?
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"
#copy data we're interested in to other place
cp -R ./build/reports/tests/ $HOME/ghp
#go to home and setup git
cd $HOME
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis"
#using token clone gh-pages branch
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/clojit/clojit-tests.git gh-pages > /dev/null
#go into diractory and copy data we're interested in to that directory
cd gh-pages
cp -Rf $HOME/ghp/* .
#add, commit and push files
git add -f .
git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages"
git push -fq origin gh-pages > /dev/null
echo -e "Done magic with coverage\n"
fi
exit $retval