diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..61e93ef --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: node_js +node_js: +- '8' +install: +- npm install +script: +- npm run build +deploy: +- provider: script + skip_cleanup: true + script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/explorer.aepps.com/ + on: + branch: master +- provider: script + skip_cleanup: true + script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/stage-explorer.aepps.com/ + on: + branch: stage +before_install: +- openssl aes-256-cbc -K $encrypted_90a9ca14a0f9_key -iv $encrypted_90a9ca14a0f9_iv + -in deploy.enc -out deploy -d +- eval "$(ssh-agent -s)" +- chmod 600 deploy +- ssh-add deploy +- mkdir -p ~/.ssh +- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config diff --git a/deploy.enc b/deploy.enc new file mode 100644 index 0000000..b585345 Binary files /dev/null and b/deploy.enc differ