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 c424abb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .codebuild/buildspec.pr.test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
version: 0.2
env:
variables:
CI_NAME: "codebuild"
parameter-store:
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 +19,12 @@ phases:
- apt-get install -y yarn
pre_build:
commands:
- echo setting environment variables
- CI_PULL_REQUEST=$(echo $CODEBUILD_SOURCE_VERSION | cut -d'/' -f 2)
- CI_BUILD_NUMBER=${CODEBUILD_BUILD_ID}
- CI_BUILD_URL=${CODEBUILD_LOG_PATH}
- CI_BRANCH=${CODEBUILD_WEBHOOK_BASE_REF}
- echo -e "variables, ${CI_BUILD_NUMBER}\n${CI_BUILD_URL}\n${CI_BRANCH}\n${CI_BRANCH}\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 c424abb

@vercel
Copy link

@vercel vercel bot commented on c424abb 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.