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,7 +5,6 @@ services:
55before_install :
66 - docker build -t httpse .
77script :
8- - docker run --rm -ti -v $(pwd):/opt -e FIREFOX=/$FIREFOX/firefox/firefox --privileged httpse bash -c "./test.sh"
98 - docker run --rm -ti -v $(pwd):/opt -e FIREFOX=/$FIREFOX/firefox/firefox --privileged httpse bash -c "service miredo start && test/travis-ruleset-fetch.sh"
109env :
1110 - FIREFOX=firefox-latest
Original file line number Diff line number Diff line change @@ -22,11 +22,25 @@ git remote add upstream-for-travis https://github.com/EFForg/https-everywhere.gi
2222git fetch upstream-for-travis master
2323COMMON_BASE_COMMIT=$( git merge-base upstream-for-travis/master HEAD)
2424RULESETS_CHANGED=$( git diff --name-only $COMMON_BASE_COMMIT | grep $RULESETFOLDER | grep ' .xml' )
25+ if [ " $( git diff --name-only $COMMON_BASE_COMMIT ) " != " $RULESETS_CHANGED " ]; then
26+ ONLY_RULESETS_CHANGED=false
27+ fi
2528git remote remove upstream-for-travis
2629
30+ if ! $ONLY_RULESETS_CHANGED ; then
31+ echo >&2 " Core code changes have been made."
32+ echo >&2 " Running main test suite."
33+ ./test/firefox.sh
34+ ./test/chromium.sh
35+ fi
2736# Only run test if something has changed.
2837if [ " $RULESETS_CHANGED " ]; then
29- echo >&2 " Ruleset database has changed. Testing test URLs in all changed rulesets."
38+ echo >&2 " Ruleset database has changed."
39+
40+ echo >&2 " Performing comprehensive coverage test."
41+ ./test/rules.sh
42+
43+ echo >&2 " Testing test URLs in all changed rulesets."
3044
3145 # Make a list of all changed rulesets, but exclude those
3246 # that do not exist.
You can’t perform that action at this time.
0 commit comments