add iam template with mapbox-gl-testing and mapbox-node-binary permissions add travis build scripts and .travis.yml rm -f platform gypi map.resize is private now, called by view.resize set stdlib and c++11 per platform, link glfw3 ldflags on linux pass --clang to node-gyp per https://github.com/mapbox/mapbox-gl-native/pull/364#issuecomment-51735692
109 lines
3.8 KiB
Plaintext
109 lines
3.8 KiB
Plaintext
|
|
{
|
|
"AWSTemplateFormatVersion": "2010-09-09",
|
|
"Description": "node-mapbox-gl-native travis resources",
|
|
"Resources": {
|
|
"BuildUser": {
|
|
"Type": "AWS::IAM::User",
|
|
"Properties": {
|
|
"Policies": [
|
|
{
|
|
"PolicyName": "build",
|
|
"PolicyDocument": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:DeleteObject",
|
|
"s3:GetObject",
|
|
"s3:GetObjectAcl",
|
|
"s3:PutObject",
|
|
"s3:PutObjectAcl"
|
|
],
|
|
"Resource": [
|
|
"arn:aws:s3:::mapbox-node-binary/mapbox-gl-native/*"
|
|
],
|
|
"Effect": "Allow"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"PolicyName": "build-testing",
|
|
"PolicyDocument": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:DeleteObject",
|
|
"s3:GetObject",
|
|
"s3:GetObjectAcl",
|
|
"s3:PutObject",
|
|
"s3:PutObjectAcl"
|
|
],
|
|
"Effect": "Allow",
|
|
"Resource": [
|
|
"arn:aws:s3:::mapbox-gl-testing/*"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"PolicyName": "list",
|
|
"PolicyDocument": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:ListBucket"
|
|
],
|
|
"Resource": [
|
|
"arn:aws:s3:::mapbox-node-binary"
|
|
],
|
|
"Effect": "Allow"
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"PolicyName": "list-testing",
|
|
"PolicyDocument": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:ListBucket"
|
|
],
|
|
"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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|