Skip to content

Commit

Permalink
Reorganize Travis stuff; add hook to re-generate demo.pwntools.com on…
Browse files Browse the repository at this point in the history
… pushes to stable (#708)
  • Loading branch information
zachriggle committed Aug 29, 2016
1 parent 70f9c03 commit 041c665
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ cache:
- /home/travis/virtualenv/python2.7.9/bin/
python:
- "2.7"
after_success:
- coveralls
before_install:
- source .travis_install.sh
- source .travis_ssh_setup.sh
- source travis/install.sh
- source travis/ssh_setup.sh
install:
- pip install -e .
- pip install -r docs/requirements.txt
Expand All @@ -28,3 +26,6 @@ before_script:
- PWNLIB_NOTERM=1 python -c 'from pwn import *; print pwnlib.term.term_mode'
script:
- PWNLIB_NOTERM=1 coverage run -m sphinx -b doctest docs/source docs/build/doctest
after_success:
- coveralls
- source travis/update_demo.sh
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions travis/update_demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash


if [ "$TRAVIS_BRANCH" = "stable" ] && [ ! -z "$TRY_KEY" ]; then
# Start the SSH agent
eval "$(ssh-agent -s)"

# Add the keys
echo "$TRY_KEY" > ~/.ssh/try_key
chmod 600 ~/.ssh/try_key
ssh-add ~/.ssh/try_key

# Update!
ssh root@demo.pwntools.com -- 'docker/update'
fi

0 comments on commit 041c665

Please sign in to comment.