forked from lbc-team/deep_ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 856 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: node_js
node_js:
- node
sudo: required
dist: trusty
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_f65a4f4f1ef2_key -iv $encrypted_f65a4f4f1ef2_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host $remote_address\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ssh -i ./deploy_key $username@$remote_address pwd
- mkdir work
- export PATH=$PATH:$PWD/work/
install:
- wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb
-O $PWD/work/hugo.deb
- sudo dpkg -i $PWD/work/hugo.deb
- npm install
script:
- grunt build --verbose
deploy:
provider: script
skip_cleanup: true
script: rsync -avu --delete ./public/ $username@$remote_address:$filepath
on:
branch: master