-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
30 lines (30 loc) · 1.49 KB
/
.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
language: ruby
rvm:
- 2.3.4
services:
- postgresql
addons:
ssh_known_hosts: perseus.uberspace.de
chrome: stable
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.travis.yml config/database.yml
- bundle exec rake db:create db:migrate
script: xvfb-run -a bundle exec rake
before_deploy:
- openssl aes-256-cbc -K $encrypted_42bcee30061d_key -iv $encrypted_42bcee30061d_iv
-in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- rvm $TRAVIS_RUBY_VERSION do gem install bundler capistrano capistrano-rails capistrano-db-tasks whenever
deploy:
provider: script
skip_cleanup: true
script:
- rvm $TRAVIS_RUBY_VERSION do cap production deploy
on:
branch: master
notifications:
slack:
secure: 0fWZkjkFuCzdG25ArWWPdNf5pl1VPtnQyBcDxhxUH82bszt/t4aQumBf+UvYlXZBfH4US1es6zz0BLfc/GocVZbRmGJ3KmRU9weMNPiIhqUUCYl2E89kOAObdelVRBZClM06IBnb/PSOVwHSGa/2cPCdQF4UWkirlWj5WL6vU5TS++XLFfQVZZTxD4qVLrlyYmK9y5wHB9QQanMcGqkNsZVI4CjhEJ8DYL4XFOY533UE5i8VqAuA8GnqyLD2cHfxFdGjV8AFzcCpfXoB35OOXgOGAZRKjpcV97HuAtESNii1WZ//aVQWH14EcXokx5KnefZCLlzrY6ar03aOC3l7cK+fJxa0xcQTmoRrK+APpJf3qQPravAnvixruSFtSEIYfBpHhNW2rXOcQsaVmtHE0NPeiLmd4RTrPbDBb/EoEtwyF14l8ADW1WwvL6pDQyNiCaAwc5wMvlG+7mpkGbc4E2VULeMdupYlh30r2C1YkisYrxS5oOAeKsbmUg/fttXoxaW2F+dwZG3AuRHpTiDtqlr48huBGuUlFy/LW3fDrkPqpGEhX7nzZd/zvjuj4goe813y7SnTzBzkJRy5/aZ5zwaG2ISQ9x89fe9qB3SRAEYUFdq9jgCKPSMjxHB5yj6h0NwwoQpN1YQNqblABGxKgF9Ul3KaH1FUOrX8x/RpRDI=