Add travis build support
This commit is contained in:
parent
5cf7af35b2
commit
08d0a56ac0
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,6 @@
|
||||
build
|
||||
node_modules
|
||||
npm-debug.log
|
||||
.DS_store
|
||||
.DS_store
|
||||
.travis/*.key*
|
||||
!.travis/deploy.key.enc
|
||||
|
14
.travis.yml
Normal file
14
.travis.yml
Normal 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
BIN
.travis/deploy.key.enc
Normal file
Binary file not shown.
@ -24,6 +24,6 @@
|
||||
"striptags": "^2.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "6.0.0"
|
||||
"node": "8"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user