Skip to content

Commit

Permalink
testing adding env vars for coveralls reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkySharks committed Apr 9, 2019
1 parent 062681d commit 68d3929
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .codebuild/buildspec.pr.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ env:
BRAINTREE_TOKEN: "/pwa/BRAINTREE_TOKEN"
MAGENTO_BACKEND_URL: "/pwa/MAGENTO_BACKEND_URL"
DANGER_GITHUB_API_TOKEN: "/pwa/DANGER_GITHUB_API_TOKEN"
COVERALLS_REPO_TOKEN: "/pwa/COVERALLS_REPO_TOKEN"
BUNDLESIZE_GITHUB_TOKEN: "/pwa/BUNDLESIZE_GITHUB_TOKEN"
COVERALLS_REPO_TOKEN: "/pwa/COVERALLS_REPO_TOKEN"
phases:
install:
commands:
Expand All @@ -17,6 +17,11 @@ phases:
- apt-get install -y yarn
pre_build:
commands:
- echo setting environment variables
- CI_NAME="codebuild"
- CI_PULL_REQUEST=$(echo $CODEBUILD_SOURCE_VERSION | cut -d'/' -f 2)
- CI_BUILD_NUMBER=${CODEBUILD_BUILD_ID}
- echo -e "variables, ${CI_BUILD_NUMBER}\n${CI_PULL_REQUEST}"
- echo copying env vars to env file
- sed -i "s%MAGENTO_BACKEND_URL=redacted%MAGENTO_BACKEND_URL=${MAGENTO_BACKEND_URL}%g" ./docker/.env.docker.prod
- sed -i "s/BRAINTREE_TOKEN=redacted/BRAINTREE_TOKEN=${BRAINTREE_TOKEN}/g" ./docker/.env.docker.prod
Expand Down

1 comment on commit 68d3929

@vercel
Copy link

@vercel vercel bot commented on 68d3929 Apr 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The hostname api.zeit.co could not be resolved. Please verify your internet connectivity and DNS configuration.

Please sign in to comment.