forked from jerryseigle/nexmo-developer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
24 lines (24 loc) · 751 Bytes
/
Copy path.travis.yml
File metadata and controls
24 lines (24 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: ruby
services:
- postgresql
addons:
postgresql: '9.4'
install: bundle install --deployment --path vendor/bundle
before_script:
- |
if [ -z "$SSH_KEY_REQUIRED" ]; then
echo "Skipping setting up SSH Key";
else
echo "Setting up SSH key";
declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
openssl aes-256-cbc -K $encrypted_293bfe86302a_key -iv $encrypted_293bfe86302a_iv -in "github_deploy_key.enc" -out "$SSH_FILE" -d
chmod 600 "$SSH_FILE" \
&& printf "%s\n" \
"Host github.com" \
" IdentityFile $SSH_FILE" \
" LogLevel ERROR" >> ~/.ssh/config
fi
- bundle exec rake db:setup
script:
- bundle exec rake spec
- bundle exec rake test:rubocop