Add travis build support

This commit is contained in:
Marcus Noble 2017-10-08 14:49:23 +01:00
parent 5cf7af35b2
commit 08d0a56ac0
4 changed files with 18 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@ build
node_modules
npm-debug.log
.DS_store
.travis/*.key*
!.travis/deploy.key.enc

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: node_js
node_js:
- '8'
before_install:
- openssl aes-256-cbc -K $encrypted_7f1476ad54d9_key -iv $encrypted_7f1476ad54d9_iv
-in .travis/deploy.key.enc -out .travis/deploy.key -d
- eval "$(ssh-agent -s)"
- chmod 600 .travis/deploy.key
- ssh-add .travis/deploy.key
- ssh-keyscan marcusnoble.co.uk >> ~/.ssh/known_hosts
- git remote add dokku dokku@marcusnoble.co.uk:blog
- git config --global push.default simple
script:
- git push dokku master

BIN
.travis/deploy.key.enc Normal file

Binary file not shown.

View File

@ -24,6 +24,6 @@
"striptags": "^2.1.1"
},
"engines": {
"node": "6.0.0"
"node": "8"
}
}