Skip to content

Commit d74afb5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into new-test
Conflicts: .travis.yml test/rules
2 parents 39ea42c + 0afbd39 commit d74afb5

13,631 files changed

Lines changed: 188716 additions & 38813 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ tokenkeys.py*
1010
*.pyc
1111
from-preloads/
1212
test_profile/
13+
.venv/
14+
Vagrantfile
15+
.vagrant
16+
src/chrome/content/rulesets.json

‎.gitmodules‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
[submodule "addon-sdk"]
22
path = addon-sdk
33
url = https://github.com/mozilla/addon-sdk.git
4-
[submodule "https-everywhere-checker"]
5-
path = test/rules
6-
url = https://github.com/jsha/https-everywhere-checker.git
7-
branch = updates
84
[submodule "translations"]
95
path = translations
106
url = https://git.torproject.org/translation.git

‎.travis.yml‎

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,27 @@ addons:
1111
apt:
1212
packages:
1313
- libxml2-dev
14+
- libxml2-utils
1415
- python-dev
1516
- libcurl4-openssl-dev
1617
- python-lxml
1718
- python-software-properties
1819
- chromium-browser
19-
firefox: "37.0"
2020
virtualenv:
2121
system_site_packages: true
2222
install:
2323
- pip install -r test/rules/requirements.txt
2424
- pip install -r test/chromium/requirements.txt
2525
env:
26-
- DISPLAY=':99.0'
26+
- FIREFOX_VERSION=firefox-latest
27+
- FIREFOX_VERSION=firefox-esr-latest
2728
before_script:
28-
- export DISPLAY=:99.0
29-
- sh -e /etc/init.d/xvfb start
30-
- wget https://chromedriver.storage.googleapis.com/2.12/chromedriver_linux64.zip
31-
- unzip chromedriver_linux64.zip
32-
- mv chromedriver test/chromium/chromedriver
29+
- sudo apt-get install chromium-chromedriver
30+
- wget -O /tmp/firefox.tar.bz2 'https://download.mozilla.org/?os=linux64&lang=en-US&product='$FIREFOX_VERSION
31+
- tar xpjf /tmp/firefox.tar.bz2
32+
- export FIREFOX=$PWD/firefox/firefox
3333
script:
3434
- ./test.sh
3535
- test/travis-ruleset-fetch.sh
36-
sudo: false
37-
notifications:
38-
email:
39-
recipients:
40-
- jsha@eff.org
41-
notifications:
42-
irc:
43-
channels:
44-
- "irc.oftc.net#https-everywhere"
45-
on_success: change
46-
on_failure: change
36+
sudo: required
37+
dist: trusty

‎Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ clean:
1212
rm -rf pkg/xpi-amo/ pkg/xpi-eff/
1313
rm -f pkg/*.xpi
1414
rm -f src/chrome/content/rules/default.rulesets
15-
rm -f src/defaults/rulesets.sqlite
1615

1716
.PHONY: clean prerelease

‎README.md‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Get the packages you need and install a git hook to run tests before push:
88

99
bash install-dev-dependencies.sh
1010

11-
Run the tests for the Firefox version:
11+
Run all the tests:
1212

1313
bash test.sh
1414

1515
Run the latest code and rulesets in a standalone Firefox profile:
1616

17-
bash test.sh --justrun
17+
bash test/firefox.sh --justrun
1818

1919
Run the latest code and rulesets in a standalone Chromium profile:
2020

21-
bash test-chromium.sh --justrun
21+
bash test/chromium.sh --justrun
2222

2323
Build the Firefox extension as a .xpi package:
2424

@@ -56,6 +56,8 @@ Important directories you might want to know about
5656

5757
src/chrome/content/rules The rulesets live here
5858

59+
test/ The tests live here
60+
5961
Hacking on the Source Code
6062
--------------------------
6163

@@ -88,14 +90,14 @@ https://www.transifex.com/projects/p/torproject/.
8890

8991
### Bug trackers and mailing lists
9092

91-
We currently have two bug trackers. The one on Github (https://github.com/EFForg/https-everywhere/issues) is recommended because it gets checked more frequently and has a friendlier user interface. The one on trac.torproject.org (https://trac.torproject.org/projects/tor/report/19) has a large backlog of bugs at this point, but it has the advantage of allowing you to post bugs anonymously using the "cypherpunks" / "writecode" account. (Note that you won't see replies unless you put an email address in the CC field.)
93+
We currently have two bug trackers. The one on GitHub (https://github.com/EFForg/https-everywhere/issues) is recommended because it gets checked more frequently and has a friendlier user interface. The one on trac.torproject.org (https://trac.torproject.org/projects/tor/report/19) has a large backlog of bugs at this point, but it has the advantage of allowing you to post bugs anonymously using the "cypherpunks" / "writecode" account. (Note that you won't see replies unless you put an email address in the CC field.)
9294

9395
We have two publicly-archived mailing lists: the https-everywhere list (https://lists.eff.org/mailman/listinfo/https-everywhere) is for discussing the project as a whole, and the https-everywhere-rulesets list (https://lists.eff.org/mailman/listinfo/https-everywhere-rules) is for discussing the rulesets and their contents, including patches and git pull requests.
9496

9597
Tests
9698
-------------
9799

98-
There are some very basic unittests under https-everywhere-tests/. These are run with
100+
There are some very basic unittests under test/. These are run with
99101

100102
bash test.sh
101103

@@ -106,7 +108,7 @@ loading URLs in a browser and watching for Mixed Content Blocking to fire.
106108
The easiest way to run ruleset tests is to load a standalone Firefox instance
107109
with the tests enabled:
108110

109-
bash test.sh --justrun
111+
bash test/firefox.sh --justrun
110112

111113
Then click the HTTPS Everywhere icon on the toolbar, and click "Run HTTPS
112114
Everywhere Ruleset Tests." When you run the tests, be prepared to let your

‎chromium/_locales/de/messages.json‎

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)