-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (37 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dist: xenial # required for Python >= 3.7
#sudo: required
language: python
python:
- "2.7"
- "3.6"
git:
depth: 3
before_install:
- sudo apt-get update
# command to install dependencies
# Travis CI Uses Isolated virtualenvs, so if you need to install Python packages, do it via pip and not apt
install:
- ls -la
#
- ./install_openwpm.sh # install OpenWPM as a python module
#
- pip install --upgrade -r requirements.txt # install our python requirements
# command to run tests
#before_script:
# - flake8 || exit 0
script:
- env
- pwd
- whoami
#
- python -c "from OpenWPM.automation import TaskManager; print(TaskManager.load_default_params(1))"
#
- |
wget https://raw.githubusercontent.com/mozilla/OpenWPM/master/demo.py -O demo.py
sed -i -e 's/from automation import/from OpenWPM.automation import/' demo.py
sed -i -e 's/\['\''disable_flash'\''\] = False/['\''headless'\''\] = True/' demo.py # we don't have flash, and need to run headless
python demo.py
#
- python crawl.py
#
- ./analyze.sh