-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
22 lines (22 loc) · 1 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
language: ruby
cache: bundler
sudo: required
dist: precise
bundler_args: "--jobs=4 --retry=3"
before_install:
- openssl aes-256-cbc -K $encrypted_bde597b39305_key -iv $encrypted_bde597b39305_iv -in deploy_key.enc -out deploy_key -d
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- echo -e "Host staging.patterns.brl.nyc\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.1/elasticsearch-2.3.1.deb && sudo dpkg -i --force-confnew elasticsearch-2.3.1.deb && sudo service elasticsearch restart
before_script:
- bundle exec rake db:migrate RAILS_ENV=test
after_success:
- chmod 600 deploy_key
- mv deploy_key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- if [ $TRAVIS_BRANCH = 'development' ]; then bundle exec cap staging deploy; fi
addons:
code_climate:
repo_token: bc9e0fee3d10d7a24d762909e4fffe85dab761dfded5db6ffddf9d7b6e5b61f4