Skip to content

Commit 0c37246

Browse files
author
Jon Wayne Parrott
committed
Merge pull request #186 from GoogleCloudPlatform/fix-jenkins
Passing all environment variables in tox.ini
2 parents 03de397 + 8930578 commit 0c37246

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

managed_vms/memcache/main_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from unittest.case import SkipTest
16+
1517
from testing import CloudTest
1618

1719
from . import main
@@ -21,6 +23,10 @@ class MemcacheTest(CloudTest):
2123

2224
def test_index(self):
2325
main.memcache_client.set('counter', 0)
26+
27+
if main.memcache_client.get('counter') is None:
28+
raise SkipTest('Memcache is unavailable.')
29+
2430
main.app.testing = True
2531
client = main.app.test_client()
2632

tox.ini

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@ skipsdist = True
33
envlist = pep8, reqcheck, gae, py27, py34
44

55
[testenv]
6-
passenv =
7-
PYTHONPATH
8-
GOOGLE_*
9-
GCLOUD_*
10-
TEST_*
11-
CLOUD_*
12-
TRAVIS*
13-
SQLALCHEMY_DATABASE_URI
14-
PUBSUB_*
15-
GA_TRACKING_ID
16-
MAILGUN_*
17-
SENDGRID_*
18-
TWILIO_*
6+
passenv = *
197
basepython = python2.7
208
deps =
219
-rrequirements.txt
@@ -56,7 +44,7 @@ deps =
5644
-rrequirements-py27-dev.txt
5745
commands =
5846
# Create a lib directory, otherwise, the vendor library will explode.
59-
mkdir lib
47+
mkdir -p lib
6048
nosetests --with-gae \
6149
--gae-app=appengine/resources/app.yaml \
6250
--logging-level=INFO \

0 commit comments

Comments
 (0)