Commit 686e8a2a authored by BryceLTaylor's avatar BryceLTaylor

circleci config change staging environment variables to commands

parent 09f0bf9f
...@@ -33,21 +33,21 @@ aliases: ...@@ -33,21 +33,21 @@ aliases:
SENTRY_PROJECT: scratch-30-production SENTRY_PROJECT: scratch-30-production
STATIC_HOST: https://cdn2.scratch.mit.edu STATIC_HOST: https://cdn2.scratch.mit.edu
TEST_PROJECT_ID: "414835599" TEST_PROJECT_ID: "414835599"
- &env_staging - env_staging: &env_staging
API_HOST: https://api.scratch.ly - echo export API_HOST=https://api.scratch.ly
ASSET_HOST: https://assets.scratch.ly - echo export ASSET_HOST=https://assets.scratch.ly
BACKPACK_HOST: https://backpack.scratch.ly - echo export BACKPACK_HOST=https://backpack.scratch.ly
CLOUDDATA_HOST: varserver2.scratch.ly - echo export CLOUDDATA_HOST=varserver2.scratch.ly
GA_TRACKER: UA-30688952-7 - echo export GA_TRACKER=UA-30688952-7
PROJECT_HOST: https://projects.scratch.ly - echo export PROJECT_HOST=https://projects.scratch.ly
RECAPTCHA_SITE_KEY: 6LfukK4UAAAAAFR44yoZMhv8fj6xh-PMiIxwryG3 - echo export RECAPTCHA_SITE_KEY=6LfukK4UAAAAAFR44yoZMhv8fj6xh-PMiIxwryG3
ROOT_URL: https://scratch.ly - echo export ROOT_URL=https://scratch.ly
S3_BUCKET_NAME: scratch-www-staging - echo export S3_BUCKET_NAME=scratch-www-staging
SCRATCH_ENV: staging - echo export SCRATCH_ENV=staging
SENTRY_DSN: https://c01014988b0a4f44bbefdf235623c456@sentry.io/1357982 - echo export SENTRY_DSN=https://c01014988b0a4f44bbefdf235623c456@sentry.io/1357982
SENTRY_PROJECT: scratch-30-staging - echo export SENTRY_PROJECT=scratch-30-staging
STATIC_HOST: https://cdn.scratch.ly - echo export STATIC_HOST=https://cdn.scratch.ly
TEST_PROJECT_ID: "1300006196" - echo export TEST_PROJECT_ID="1300006196"
- &save_git_cache - &save_git_cache
save_cache: save_cache:
paths: paths:
...@@ -85,7 +85,7 @@ jobs: ...@@ -85,7 +85,7 @@ jobs:
<<: *defaults <<: *defaults
environment: environment:
<<: *environment <<: *environment
<<: *env_staging # <<: *env_staging
steps: steps:
- *restore_git_cache - *restore_git_cache
- checkout - checkout
...@@ -93,6 +93,7 @@ jobs: ...@@ -93,6 +93,7 @@ jobs:
- run: - run:
name: "Run npm test to build" name: "Run npm test to build"
command: | command: |
*env_staging
npm --production=false ci npm --production=false ci
WWW_VERSION=${CIRCLE_SHA1:0:5} npm run test WWW_VERSION=${CIRCLE_SHA1:0:5} npm run test
- *save_npm_cache - *save_npm_cache
...@@ -119,7 +120,7 @@ jobs: ...@@ -119,7 +120,7 @@ jobs:
<<: *defaults <<: *defaults
environment: environment:
<<: *environment <<: *environment
<<: *env_staging # <<: *env_staging
steps: steps:
- *restore_git_cache - *restore_git_cache
- checkout - checkout
...@@ -128,6 +129,7 @@ jobs: ...@@ -128,6 +129,7 @@ jobs:
- run: - run:
name: "deploy to staging" name: "deploy to staging"
command: | command: |
*env_staging
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py python get-pip.py
pip install -r requirements.txt pip install -r requirements.txt
...@@ -154,7 +156,7 @@ jobs: ...@@ -154,7 +156,7 @@ jobs:
<<: *defaults <<: *defaults
environment: environment:
<<: *environment <<: *environment
<<: *env_staging # <<: *env_staging
steps: steps:
- *restore_git_cache - *restore_git_cache
- checkout - checkout
...@@ -162,6 +164,7 @@ jobs: ...@@ -162,6 +164,7 @@ jobs:
- run: - run:
name: "integration tests" name: "integration tests"
command: | command: |
*env_staging
npm run test:integration:remote npm run test:integration:remote
integration-production: integration-production:
<<: *defaults <<: *defaults
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment