language: python
python:
- - "3.5"
-install: "pip install -e git+https://github.com/edk0/cms7.git#egg=cms7"
+- '3.5'
+install: pip install -e git+https://github.com/edk0/cms7.git#egg=cms7
script: cms7
+before_install:
+- openssl aes-256-cbc -K $encrypted_ac880c30010f_key -iv $encrypted_ac880c30010f_iv
+ -in .deploy-key.enc -out .deploy-key -d
+after_success: deploy.sh
--- /dev/null
+#!/bin/sh
+
+if [ -z "$TRAVIS_BRANCH" ]; then exit; fi
+if [ ! "$TRAVIS_BRANCH" = master ]; then exit; fi
+
+export GIT_SSH_COMMAND="ssh -i $(readlink -f .deploy-key)"
+git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy
+cd .deploy
+rm -rf *
+cp -r ../out/* .
+cp -r ../static .
+git add -A
+git commit -m "travis: $TRAVIS_COMMIT"
+git push