File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ language: python
55python :
66 - " 2.7"
77addons :
8+ # Firefox 31 doesn't seem to be available on travis-ci.org yet.
89 firefox : " 30.0"
910before_install :
1011 - wget -q https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.16.tar.gz
Original file line number Diff line number Diff line change 3939if ! type cfx > /dev/null; then
4040 echo " Please activate the Firefox Addon SDK before running this script."
4141 echo " https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.16.tar.gz"
42- echo " Unpack and run 'source addon-adk-1.16/bin/activate'"
42+ echo " Unpack and run 'cd addon-adk-1.16; source bin/activate'"
43+ exit 1
44+ fi
4345 exit 1
4446fi
4547
@@ -49,5 +51,11 @@ if ! cfx --version | grep -q "$LATEST_SDK_VERSION"; then
4951fi
5052
5153cd $TEST_ADDON_PATH
52- echo " running tests"
53- cfx test --profiledir=" $PROFILE_DIRECTORY " --verbose
54+ # If you just want to run Firefox with the latest code:
55+ if [ " $1 " == " --justrun" ]; then
56+ echo " running firefox"
57+ firefox -profile " $PROFILE_DIRECTORY "
58+ else
59+ echo " running tests"
60+ cfx test --profiledir=" $PROFILE_DIRECTORY " --verbose
61+ fi
You can’t perform that action at this time.
0 commit comments