]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
add travis deployment
authorEd Kellett <redacted>
Tue, 23 Feb 2016 20:23:40 +0000 (20:23 +0000)
committerEd Kellett <redacted>
Tue, 23 Feb 2016 20:23:40 +0000 (20:23 +0000)
.deploy-key.enc [new file with mode: 0644]
.travis.yml
deploy.sh [new file with mode: 0755]

diff --git a/.deploy-key.enc b/.deploy-key.enc
new file mode 100644 (file)
index 0000000..8b3bcd3
Binary files /dev/null and b/.deploy-key.enc differ
index 5c6baa3419b90a8988cf5c03bd112508a723e28a..f8f90b2d4e1514329afdcf3a620455122916166d 100644 (file)
@@ -1,5 +1,9 @@
 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
diff --git a/deploy.sh b/deploy.sh
new file mode 100755 (executable)
index 0000000..67c6770
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,14 @@
+#!/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