a travis script, since its getting a little complex

This commit is contained in:
Jeff Lindsay
2013-06-23 03:13:17 -07:00
parent 5fab0a4c3a
commit 7fd8f4e437
3 changed files with 12 additions and 7 deletions

9
tests/setup_travis Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
sed --in-place "s|access_key|access_key = $AWS_ACCESS_KEY|" .s3cfg
sed --in-place "s|secret_key|secret_key = $AWS_SECRET_KEY|" .s3cfg
s3cmd -c .s3cfg get s3://progrium-private/ec2_cert.pem /tmp/cert
s3cmd -c .s3cfg get s3://progrium-private/ec2_pk.pem /tmp/pk
mkdir -p ~/.ssh
s3cmd -c .s3cfg get s3://progrium-private/test.pem ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
openssl rsa -in ~/.ssh/id_rsa -pubout > ~/.ssh/id_rsa.pub