ponyFiction/.travis.yml

48 lines
1.3 KiB
YAML

language: generic
dist: trusty
sudo: required
cache:
directories:
- .vagga/.cache
before_install:
- echo 'deb [arch=amd64 trusted=yes] http://ubuntu.zerogw.com vagga main' | sudo tee /etc/apt/sources.list.d/vagga.list
- sudo apt-get update
install:
- "echo ubuntu-mirror: http://mirrors.us.kernel.org/ubuntu/ > ~/.vagga.yaml"
- "echo alpine-mirror: http://mirrors.gigenet.com/alpinelinux/ >> ~/.vagga.yaml"
- "echo travis:100000:65536 | sudo tee /etc/subuid | sudo tee /etc/subgid"
- sudo apt-get install vagga
before_deploy:
- ssh-keyscan -p $deploy_port -H $deploy_host 2>&1 | tee -a $HOME/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypted_bfe126324a9f_key -iv $encrypted_bfe126324a9f_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
script:
- vagga _build redis-trunk
- vagga _build mysql-trunk
- vagga _build sphinx-trunk
- vagga _build static-trunk
- vagga _build uwsgi-trunk
deploy:
- provider: script
skip_cleanup: true
script: >-
./deploy/script.sh
--project stories
--type trunk
--blobs "static"
--containers "redis mysql sphinx uwsgi"
--destination $deploy_destination
--server $deploy_host
--port $deploy_port
--user $deploy_user
on:
branch: development