Skip to content
Permalink
Browse files

Pass BUILDKITE env variable through to tox

Summary: Allows test fixtures to vary based on their environment. For example, in the status quo ante we have the function `dagster_postgres.test.in_buildkite` -- this will never return `True`, since the environment variable is not passed to tox. Stacked on D1121 (incidentally).

Test Plan: Unit

Reviewers: #ft, alangenfeld, schrockn, natekupp

Reviewed By: #ft, natekupp

Subscribers: natekupp, schrockn

Differential Revision: https://dagster.phacility.com/D1122
  • Loading branch information...
mgasner committed Sep 30, 2019
1 parent dd1f77a commit 8a6c4d82e789a70d4960806c863ab30656060b03
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_PULL_REQUEST COVERALLS_REPO_TOKEN
passenv = CI_PULL_REQUEST COVERALLS_REPO_TOKEN BUILDKITE
deps =
-r ../dagster/dev-requirements.txt
-e ../dagster
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-r ./dev-requirements.txt
-e ../dagster
@@ -5,7 +5,7 @@ envlist = py37,py36,py35,py27
basepython = python2.7

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AIRFLOW_HOME DOCKER_* AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID
passenv = CI_* COVERALLS_REPO_TOKEN AIRFLOW_HOME DOCKER_* AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID BUILDKITE
setenv =
SLUGIFY_USES_TEXT_UNIDECODE = yes
VIRTUALENV_NO_DOWNLOAD = yes
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CIRCLECI CIRCLE_* CI_PULL_REQUEST COVERALLS_REPO_TOKEN DASK_ADDRESS AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID
passenv = CIRCLECI CIRCLE_* CI_PULL_REQUEST COVERALLS_REPO_TOKEN DASK_ADDRESS AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID BUILDKITE
deps =
-r ../dagster/dev-requirements.txt
-e ../dagster
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../dagster
-e ../../examples
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID BUILDKITE
deps =
-e .[aws]
-e ../../examples
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../dagster
-e ../libraries/dagster-pandas
@@ -2,7 +2,7 @@
envlist = py37,py36,py35

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION BUILDKITE
deps =
-e ../dagster
-r ../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN GOOGLE_APPLICATION_CREDENTIALS GCP_PROJECT_ID
passenv = CI_* COVERALLS_REPO_TOKEN GOOGLE_APPLICATION_CREDENTIALS GCP_PROJECT_ID BUILDKITE
deps =
-e ../../dagster
-e ../dagster-pandas
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN POSTGRES_TEST_DB_HOST
passenv = CI_* COVERALLS_REPO_TOKEN POSTGRES_TEST_DB_HOST BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID
passenv = CI_* COVERALLS_REPO_TOKEN AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt
@@ -2,7 +2,7 @@
envlist = py37,py36,py35,py27

[testenv]
passenv = CI_* COVERALLS_REPO_TOKEN
passenv = CI_* COVERALLS_REPO_TOKEN BUILDKITE
deps =
-e ../../dagster
-r ../../dagster/dev-requirements.txt

0 comments on commit 8a6c4d8

Please sign in to comment.
You can’t perform that action at this time.