Skip to content

Commit 2d9923b

Browse files
committed
Merge branch 'tests4' into tests
Conflicts: .travis.yml test.sh
2 parents 57f21c8 + a74293b commit 2d9923b

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ language: python
55
python:
66
- "2.7"
77
addons:
8+
# Firefox 31 doesn't seem to be available on travis-ci.org yet.
89
firefox: "30.0"
910
before_install:
1011
- wget -q https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.16.tar.gz

test.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ fi
3939
if ! 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
4446
fi
4547

@@ -49,5 +51,11 @@ if ! cfx --version | grep -q "$LATEST_SDK_VERSION"; then
4951
fi
5052

5153
cd $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

0 commit comments

Comments
 (0)