@ -35,14 +35,14 @@ Capybara::Screenshot.prune_strategy = :keep_last_run
Capybara . server = :puma , { Silent : false }
Capybara . server = :puma , { Silent : false }
# Set up S3 uploads if desired
# Set up S3 uploads if desired
if ENV [ 'OPENPROJECT_ENABLE_ CAPYBARA_SCREENSHOT_S3_UPLOADS' ] && ENV [ ' AWS_ACCESS_KEY_ID' ]
if ENV [ 'CAPYBARA_AWS_ACCESS_KEY_ID' ]
Capybara :: Screenshot . s3_configuration = {
Capybara :: Screenshot . s3_configuration = {
s3_client_credentials : {
s3_client_credentials : {
access_key_id : ENV . fetch ( 'AWS_ACCESS_KEY_ID' ) ,
access_key_id : ENV . fetch ( 'CAPYBARA_ AWS_ACCESS_KEY_ID' ) ,
secret_access_key : ENV . fetch ( 'AWS_ACCESS_KEY_SECRET ' ) ,
secret_access_key : ENV . fetch ( 'CAPYBARA_ AWS_SECRET_ ACCESS_KEY' ) ,
region : ENV . fetch ( 'AWS_REGION' , 'eu-west-1' )
region : ENV . fetch ( 'CAPYBARA_ AWS_REGION' , 'eu-west-1' )
} ,
} ,
bucket_name : ENV . fetch ( 'S3 _BUCKET_NAME ' , 'openproject-travis -logs' )
bucket_name : ENV . fetch ( 'CAPYBARA_AW S_BUCKET' , 'openproject-ci-public -logs' )
}
}
end
end