Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
environmentVariables: {
SLIC_STAGE: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.stageName
},
CROSS_ACCOUNT_ID: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.accountIds[props.stageName]}`
},
MAILOSAUR_API_KEY: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/apiKey'
},
MAILOSAUR_SERVER_ID: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/serverId'
}
},
buildSpec: BuildSpec.fromSourceFilename(
'integration-tests/buildspec.yml'
),
role,
...rest
})
}
}
super(scope, id, {
projectName: `${props.stageName}E2ETest`,
environment: {
buildImage: LinuxBuildImage.STANDARD_2_0
},
environmentVariables: {
SLIC_STAGE: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.stageName
},
CROSS_ACCOUNT_ID: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.accountIds[props.stageName]}`
},
MAILOSAUR_API_KEY: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/apiKey'
},
MAILOSAUR_SERVER_ID: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/serverId'
}
},
buildSpec: BuildSpec.fromSourceFilename('e2e-tests/buildspec.yml'),
role,
...rest
})
}
}
super(scope, id, {
projectName: `${props.stageName}IntegrationTest`,
environment: {
buildImage: LinuxBuildImage.STANDARD_2_0
},
environmentVariables: {
SLIC_STAGE: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.stageName
},
CROSS_ACCOUNT_ID: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.accountIds[props.stageName]}`
},
MAILOSAUR_API_KEY: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/apiKey'
},
MAILOSAUR_SERVER_ID: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/serverId'
}
},
buildSpec: BuildSpec.fromSourceFilename(
'integration-tests/buildspec.yml'
),
role,
...rest
})
}
}
},
environmentVariables: {
SLIC_STAGE: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.stageName
},
CROSS_ACCOUNT_ID: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.accountIds[props.stageName]}`
},
MAILOSAUR_API_KEY: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/apiKey'
},
MAILOSAUR_SERVER_ID: {
type: BuildEnvironmentVariableType.PARAMETER_STORE,
value: '/test/mailosaur/serverId'
}
},
buildSpec: BuildSpec.fromSourceFilename('e2e-tests/buildspec.yml'),
role,
...rest
})
}
}