-
Notifications
You must be signed in to change notification settings - Fork 431
Adding travis and tox configuration to run the app engine tests #275
Conversation
(Going to have to modify this a few times until travis works, will ping when it's green) |
bfb3b9d
to
305e5a6
Compare
We need to turn on caching so these installs don't take 50 seconds every time. |
I've seen this before on my machine when trying to fool it. OSError: Config directory does not exist: /home/travis/.config/gcloud |
86d0826
to
5f9ffb1
Compare
Was waiting to enable cache until I got it passing. The latest push should light up all green and should be ready to merge. |
Sigh. Not yet. Hold on. |
7ac4d00
to
2c2639d
Compare
w00t green! Regarding #212, we'll never light up as "100%" coverage unless the GAE tests run side-by-side with the rest. This PR is a fine stop-gap for now, but probably worth just doing them all at once once the cache is turned on (and we can just pull GAE stuff from the cache). I know right know that the GAE imports get angry when |
You can also trick coverage into compiling stats from multiple runs. We did this with the docs samples as well. |
# - TOX_ENV=pypy | ||
# - TOX_ENV=docs | ||
# - TOX_ENV=system-tests | ||
# - TOX_ENV=system-tests3 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Can you reset travis' cache? It seems I cached a bad install of the SDK. Once that's reset, we should have green tests. |
# - TOX_ENV=system-tests3 | ||
- TOX_ENV=gae | ||
global: | ||
- GAE_PYTHONPATH=$HOME/google_appengine |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
b9649b0
to
51eef9d
Compare
Still trying to get travis' cache to play along. |
@@ -51,6 +51,15 @@ basepython = python2.6 | |||
deps = {[testenv]basedeps} | |||
django>=1.5,<1.6 | |||
|
|||
[testenv:gae] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
# - TOX_ENV=system-tests3 | ||
- TOX_ENV=gae | ||
global: | ||
- GAE_PYTHONPATH=$HOME/.cache/google_appengine |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
RE:
So cool! Does this work when using matrix env in Travis? |
I don't think so. Maybe? |
I can clear it for you in the settings if need be (you might not have privileges, I might not either though): http://docs.travis-ci.com/user/caching/#Clearing-Caches |
I don't have rights to clear the cache. |
Do you want me to try to clear it? |
Okay - confirmed the settings are correct with a new cache directory ( |
Yes, please. |
@jonparrott Just deleted the cache |
Presses big red button |
mkdir -p `dirname ${GAE_PYTHONPATH}` | ||
cd `dirname ${GAE_PYTHONPATH}` | ||
wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.25.zip | ||
unzip -q google_appengine_1.9.25.zip |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
No need to re-trigger, but there are at two comments un-addressed (about hard-coding the version and making the |
@@ -25,3 +25,9 @@ if [[ "${TOX_ENV}" == "pypy" ]]; then | |||
pyenv install pypy-2.6.0 | |||
pyenv global pypy-2.6.0 | |||
fi | |||
|
|||
if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then | |||
python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
travis has forced my hand on the one test that depends on ~/.config/gcloud, I just pushed a change that should fix that. |
Finally, green. |
@@ -240,8 +242,10 @@ def test_get_access_token(self): | |||
self.assertEqual(None, token.expires_in) | |||
|
|||
def test_save_to_well_known_file(self): | |||
os.environ[_CLOUDSDK_CONFIG_ENV_VAR] = tempfile.mkdtemp() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM |
Adding travis and tox configuration to run the app engine tests
Fixes #270.