Skip to content

Commit

Permalink
upload robot results to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Aug 13, 2013
1 parent ad84cb5 commit 69c1ddb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
after_success:
- coveralls
install:
- pip install coveralls
- pip install --upgrade setuptools==0.9.8
- pip install distribute
- make bin/test
env:
global:
secure: aeJaNydBzTcyBwbbluHDvs8vmryEpwaSFYD+SvTlD2e341Ilye+vxKR2/fT56OYLONEvFXkc5K1maw4caJqaxAfjlfO80Id3FsIO3f/AM/zTl3SERHd//y8CaaokL9vaxqNRjUHRMrpJZQpTFKW8V7HMnK88ulQF8nuM1gaQU/Q=
language: python
python:
- 2.6
before_install:
- sudo apt-get install libpcre3-dev
install:
- pip install coveralls
- pip install --upgrade setuptools==0.9.8
- pip install distribute
- make bin/test
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_install:
- sudo apt-get install libpcre3-dev
python:
- 2.6
after_script:
- .update-gh-pages.sh
script:
- make coverage
after_success:
- coveralls
- make coverage
20 changes: 20 additions & 0 deletions .update-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Starting to update gh-pages\n"

cd $HOME
mkdir $TRAVIS_BUILD_NUMBER
cp -R parts/test $HOME/$TRAVIS_BUILD_NUMBER

git config --global user.email "[email protected]"
git config --global user.name "Travis"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/gotcha/collective.jekyll.git gh-pages > /dev/null

cd gh-pages
cp -Rf $HOME/$TRAVIS_BUILD_NUMBER .

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 robot_reports\n"
fi

0 comments on commit 69c1ddb

Please sign in to comment.