Skip to content

Commit

Permalink
Merge pull request #176 from GoogleCloudPlatform/canary
Browse files Browse the repository at this point in the history
Canary
  • Loading branch information
Jonathan Wayne Parrott committed Feb 5, 2016
2 parents 640109c + 3e029c0 commit 1c712e5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ before_install:
install:
# TODO: unpin tox when the following issue is fixed
# https://bitbucket.org/hpk42/tox/issues/285/tox-220-breaks-some-toxini-config-files
- pip install tox coveralls
- pip install tox

script:
- tox

after_success:
- coveralls
# Coveralls is disabled in travis because travis does not run all of our
# tests. The full suite of tests is run on an internal Jenkins instance.
# after_success:
# - coveralls
5 changes: 5 additions & 0 deletions appengine/cloudsql/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import re
from unittest.case import SkipTest

import tests
import webtest
Expand All @@ -22,6 +25,8 @@
class TestMySQLSample(tests.AppEngineTestbedCase):

def setUp(self):
if not os.path.exists('/var/run/mysqld/mysqld.sock'):
raise SkipTest('No MySQL server found.')
super(TestMySQLSample, self).setUp()
self.app = webtest.TestApp(main.app)

Expand Down
2 changes: 1 addition & 1 deletion container_engine/django_tutorial/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==1.9.2
mysqlclient==1.3.7
wheel==0.27.0
wheel==0.28.0
gunicorn==19.4.5
2 changes: 1 addition & 1 deletion datastore/api/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_multi_sort(self):
@eventually_consistent
def test_keys_only_query(self):
keys = snippets.keys_only_query(self.client)
self.to_delete_keys.extend(keys)
self.to_delete_entities.extend(self.client.query(kind='Task').fetch())
self.assertTrue(keys)

@eventually_consistent
Expand Down
2 changes: 1 addition & 1 deletion managed_vms/django_cloudsql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==1.9.2
mysqlclient==1.3.7
wheel==0.27.0
wheel==0.28.0
gunicorn==19.4.5
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ commands =
nosetests --with-gae \
--gae-app=tests/resources/app.yaml \
--logging-level=INFO \
--with-xunit \
--xunit-testsuite-name gae \
--xunit-file nosetests-gae.xml \
{[testenv]commonargs} \
{posargs:appengine}
setenv =
Expand Down Expand Up @@ -72,6 +75,9 @@ commands =
nosetests \
--exclude-dir=appengine \
{[testenv]commonargs} \
--with-xunit \
--xunit-testsuite-name py27 \
--xunit-file nosetests-py27.xml \
{posargs}

[testenv:py34-all]
Expand All @@ -82,6 +88,9 @@ commands =
nosetests \
--exclude-dir=appengine \
{[testenv]commonargs} \
--with-xunit \
--xunit-testsuite-name py34 \
--xunit-file nosetests-py34.xml \
{posargs}

[testenv:pep8]
Expand Down

0 comments on commit 1c712e5

Please sign in to comment.