Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hello, Travis

  • Loading branch information...
commit ec9f8ab23cbb9a7b371131c1eb9326bca41456fd 1 parent 6916782
@mattbasta authored
Showing with 12 additions and 7 deletions.
  1. +6 −0 .travis.yml
  2. +6 −7 appvalidator/constants.py
View
6 .travis.yml
@@ -0,0 +1,6 @@
+language: python
+python:
+ - "2.6"
+ - "2.7"
+install: "pip install -r requirements.txt --use-mirrors"
+script: nosetests
View
13 appvalidator/constants.py
@@ -21,19 +21,18 @@
# Graciously provided by @kumar in bug 614574
if (not SPIDERMONKEY_INSTALLATION or
not os.path.exists(SPIDERMONKEY_INSTALLATION)):
- for p in os.environ.get('PATH', '').split(':'):
+ for p in os.environ.get("PATH", "").split(":"):
SPIDERMONKEY_INSTALLATION = os.path.join(p, "js")
- if os.path.exists(os.path.join(p, SPIDERMONKEY_INSTALLATION)):
+ if os.path.exists(SPIDERMONKEY_INSTALLATION):
break
if not os.path.exists(SPIDERMONKEY_INSTALLATION):
-
- ############ Edit this to change the Spidermonkey location #############
SPIDERMONKEY_INSTALLATION = "/usr/bin/js"
- if not os.path.exists(SPIDERMONKEY_INSTALLATION):
- # The fallback is simply to disable JS tests.
- SPIDERMONKEY_INSTALLATION = None
+# The fallback is simply to disable JS tests.
+if (not os.path.exists(SPIDERMONKEY_INSTALLATION) or
+ os.environ.get("TRAVIS", "") == "true"):
+ SPIDERMONKEY_INSTALLATION = None
try:
from constants_local import *
Please sign in to comment.
Something went wrong with that request. Please try again.