summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2014-07-08 19:29:03 -0400
committerYoung Hahn <young@mapbox.com>2014-07-08 19:29:03 -0400
commit7bf4193ab9c17b015596beacd5a23871d136c649 (patch)
tree2570b684b65d558858ac309270661677dab78a86
parente1bd68f6181478464fcca954cfba15fcf7bf4101 (diff)
downloadqtlocation-mapboxgl-7bf4193ab9c17b015596beacd5a23871d136c649.tar.gz
CF template for travis testing user and encrypted creds.
-rw-r--r--.travis.yml3
-rw-r--r--travis/travis-resources.template74
2 files changed, 77 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index f2349fdd3f..d88fa71e8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,9 @@ env:
matrix:
- BUILDTYPE=Release
- BUILDTYPE=Debug
+ global:
+ - secure: "bG4YYWMfl9API0MSRgmOaJrlGLv06tRg9KJNawBieZvBJbITPpxVGJZT3/l/SEJ+Rl15e2dRex4k+MGQlmT2SqPQxTEYWv1qxNigKPPcla7IWeNmWWqW8uVvFjdglojgBOK2k/xErVQtA4zDfi3mwSXH4DKwquXWsoEKmX2SV7M="
+ - secure: "Cbvap9ubVKgjPe3hUhI6JGeDZzBXHpOG9RaYKh+SdoIPhKnlJiNOYm1egomi+e4uqJInlFKuVHTw7Ng9Cun6Zm0jIxpkSchv1GpsR7hmB3UGnGed19Dw8121FwuUaktN+4YnbVlsyd+u8EHD3+h58t4eELrLrZolM4rS7DL6caA="
before_install:
- source ./scripts/setup_travis.sh
diff --git a/travis/travis-resources.template b/travis/travis-resources.template
new file mode 100644
index 0000000000..afe0478e33
--- /dev/null
+++ b/travis/travis-resources.template
@@ -0,0 +1,74 @@
+
+{
+ "AWSTemplateFormatVersion": "2010-09-09",
+ "Description": "mapbox-gl-native travis resources",
+ "Resources": {
+ "BuildUser": {
+ "Type": "AWS::IAM::User",
+ "Properties": {
+ "Policies": [
+ {
+ "PolicyName": "list",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:ListBucket"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox-gl-testing"
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "build",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:DeleteObject",
+ "s3:GetObject",
+ "s3:GetObjectAcl",
+ "s3:PutObject",
+ "s3:PutObjectAcl"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox-gl-testing/*"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "BuildUserKey": {
+ "Type": "AWS::IAM::AccessKey",
+ "Properties": {
+ "UserName": {
+ "Ref": "BuildUser"
+ }
+ }
+ }
+ },
+ "Outputs": {
+ "AccessKeyId": {
+ "Value": {
+ "Ref": "BuildUserKey"
+ }
+ },
+ "SecretAccessKey": {
+ "Value": {
+ "Fn::GetAtt": [
+ "BuildUserKey",
+ "SecretAccessKey"
+ ]
+ }
+ }
+ }
+}
+