Permalink
Browse files

Hello, Travis

  • Loading branch information...
mattbasta committed Oct 3, 2012
1 parent 6916782 commit ec9f8ab23cbb9a7b371131c1eb9326bca41456fd
Showing with 12 additions and 7 deletions.
  1. +6 −0 .travis.yml
  2. +6 −7 appvalidator/constants.py
View
@@ -0,0 +1,6 @@
+language: python
+python:
+ - "2.6"
+ - "2.7"
+install: "pip install -r requirements.txt --use-mirrors"
+script: nosetests
View
@@ -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 *

0 comments on commit ec9f8ab

Please sign in to comment.