-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 1.02 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
language: ruby
bundler_args: "--without development"
rvm:
- 2.1.5
cache:
bundler: true
before_install:
- openssl aes-256-cbc -K $encrypted_5571120d826a_key -iv $encrypted_5571120d826a_iv
-in travisci_chef_cook_ec2.pem.enc -out travisci_chef_cook_ec2.pem -d
- mv travisci_chef_cook_ec2.pem ~/.ssh/
- chmod 400 ~/.ssh/travisci_chef_cook_ec2.pem
- ls -la ~/.ssh
script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && bundle exec rake aws_simplest || false'
after_script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && bundle exec rake aws_destroy || false'
branches:
only:
- master
env:
global:
- AWS_KEYPAIR_NAME='travisci_chef_cook_ec2'
- AWS_REGION='eu-west-1'
- secure: SpCIPIxhCizoQ8mm6lk5AFfghbPHv3fCkGsUZRUUApF2buNbr6G9gXuA+LSzBHovPmzA/8StFCKwqV1+a4ieXwwDe6xZNvebo37bKyb79I2nyuzNDo6vC47hFvj8Sb8A9Vca8s7pkNB9FB7qp5IIJ00Pqj6DUdFBbhjta8UhjWs=
- secure: SAmMhaXV5L8MF9qEzmODy6D5l5LIJAqLMDLZdFd6jkN2NiXbTaZeqTzvnnzIGNwugGKGXmdmD+cY9TafJVQwZNVgColPvVs5yNR+V1CQ70fFnttwea1V1BpL9+EV0mOhgF3H4hIvLtDNRjCkBtRJzjhZnN3edivwog58RPeR+N4=