mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
45 lines
884 B
YAML
45 lines
884 B
YAML
language: node_js
|
|
|
|
node_js:
|
|
- "node"
|
|
|
|
addons:
|
|
ssh_known_hosts: nginxconfig.io
|
|
apt:
|
|
packages:
|
|
- libgconf-2-4
|
|
|
|
cache:
|
|
directories:
|
|
- ~/.npm
|
|
- ~/.cache
|
|
- ./node_modules
|
|
|
|
install:
|
|
- npm ci
|
|
|
|
script:
|
|
- npm run test
|
|
|
|
before_deploy:
|
|
- openssl aes-256-cbc -K $encrypted_c855341ef4be_key -iv $encrypted_c855341ef4be_iv -in .deploy_rsa.enc -out /tmp/deploy_rsa -d
|
|
- eval "$(ssh-agent -s)"
|
|
- chmod 600 /tmp/deploy_rsa
|
|
- ssh-add /tmp/deploy_rsa
|
|
|
|
deploy:
|
|
- provider: script
|
|
script: bash .travis_deploy.sh /var/www/nginxconfig.io/
|
|
skip_cleanup: true
|
|
on:
|
|
branch: master
|
|
- provider: script
|
|
script: bash .travis_deploy.sh /var/www/beta.nginxconfig.io/
|
|
skip_cleanup: true
|
|
on:
|
|
branch: beta
|
|
- provider: script
|
|
script: bash .travis_deploy.sh /var/www/do.nginxconfig.io/
|
|
skip_cleanup: true
|
|
on:
|
|
branch: do
|