Skip to content

Commit

Permalink
Add travis build config
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle committed Oct 19, 2015
1 parent d4f0574 commit 4d7fc3d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: python
python:
- 2.7
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
- $HOME/pygrow
- $HOME/virtualenv
env:
global:
- secure: "o0VA1qXI9ZWPwSRnMODjVPiVWtKF+4ZdimgFfYybbi7gIW0h5xboO/mBEnRLuUfCg3I2lx3SNpt7rxG/GDrwXtLEW1SPXJs4kRxfgWZZiwmWjBgF1PHjED2mw5uqbV9e/6b9OGzJ0uYzWH41Zjzcnv3BpZ/oWsCNTHub+SV9ycmg2ZgLEJNQKImGiKFRwLPnQQWeLcJChX2XdGH0oE+sXk0FtmSNzmoWBEpn8dG2UXSRcka4FvISsWU434hAUJsjzQCSVKey6ZlEvVNNIs77/i7Ba7LtvbObeJLrtp0ytSEO6rriFWN8K12DIdQxilPVrN+Lwx6+oSK1mqZFWjbtAiiMX137i2A934HqJH/L+2NrPKIWzyS4+ZHObwvaJHSahl4Z1htDWbmSRO4xwdIdo3/S8L9OpqB6wyJNZIVvF5tUqBtwNJ8fqYKG6ekzYh+GpAyfZ/oKIrZEAeMH2bHSGz8QF6JKLhoKbMQnpSPV32INl8kA67tY8Uf9UfrLQ0bn7cB2WHYFf+plCGZwaZUy8yWN+LY8AL3sG2hb2D597vCve252HYZazsunQTR3CMO4fWoZvS24XaGg73Av/WdHQicQnSGneVyhjsbmJpG97SN18fRptyyxy+e0Wl+AopQ9HEXSLHAzgAr+/wqsESWfl6aLBFO+wANgiqSvPp6NKeo="
install:
- bash ./install-grow.sh
- bash ./setup.sh
- git clone https://[email protected]/stevenle/stevenle.github.io.git
script: bash ./deploy-travis.sh
16 changes: 16 additions & 0 deletions deploy-travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -ex

grow deploy -f travis
cd stevenle.github.io
git config user.name "Travis CI"
git config user.email "[email protected]"

if [[ -z $(git status -s) ]]; then
echo "No changes to commit"
else
git add .
git commit -m "Auto deploy at rev=$TRAVIS_COMMIT"
git push -u origin master
fi
11 changes: 11 additions & 0 deletions install-grow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -ex

if [ ! -d "$HOME/pygrow" ]; then
git clone https://github.com/grow/pygrow.git $HOME/pygrow
else
git pull
fi

pip install $HOME/pygrow
3 changes: 3 additions & 0 deletions podspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ deployments:
github:
destination: local
out_dir: ../stevenle.github.io/
travis:
destination: local
out_dir: stevenle.github.io/
6 changes: 6 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -ex

npm install
bower install

0 comments on commit 4d7fc3d

Please sign in to comment.