tabun-changes/.travis.yml

63 lines
1.7 KiB
YAML

language: generic
dist: trusty
sudo: required
cache:
directories:
- .vagga/.cache
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 uidmap -y
- curl http://files.zerogw.com/vagga/vagga-install-testing.sh | sh
before_deploy:
- ssh-keyscan -p $deploy_port -H $deploy_host 2>&1 | tee -a $HOME/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypted_6a519e1377ad_key -iv $encrypted_6a519e1377ad_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 celery-trunk
- vagga _build php-trunk
- vagga _build mysql-trunk
- vagga _build static-trunk
- vagga _build elastic-trunk
deploy:
- provider: script
skip_cleanup: true
script: >-
./deploy/script.sh
--project tabun
--type trunk
--blobs "static"
--containers "redis celery php mysql elastic"
--destination $deploy_destination
--server $deploy_host
--port $deploy_port
--user $deploy_user
on:
branch: development
- provider: script
skip_cleanup: true
script: >-
./deploy/script.sh
--project tabun
--type production
--blobs "static"
--containers "redis celery php mysql elastic"
--destination $deploy_destination
--server $deploy_host
--port $deploy_port
--user $deploy_user
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+.[0-9]+(-[a-z]+([0-9]+)?)?$