diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f46ebb8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,46 @@ + +language: python +dist: bionic +# python: +# - '3.6' +# - '3.7' +# nodejs: +# - 10.0.0 +# os: osx +# command to run tests +cache: pip +env: + global: + - MOZ_HEADLESS=1 +addons: + firefox: "78.0.1" +sudo: required +services: + - xvfb +before_install: + - sudo apt-get install xvfb + - wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz + # - mkdir geckodriver + # - tar -xzf geckodriver-v0.26.0-macos.tar.gz -C geckodriver + # - export PATH=$PATH:$PWD/geckodriver + - sudo tar -xzf geckodriver-v0.26.0-linux64.tar.gz -C /usr/bin + - sudo chmod a+x /usr/bin/geckodriver + # - export DISPLAY=:99.0 + # - sh -e /etc/init.d/xvfb start + # - sleep 5 # give xvfb some time to start +install: + - "pip install -r requirements.txt" + - npm install selenium-webdriver@^3.0.0 + - curl -o- -L https://yarnpkg.com/install.sh | bash + - node --version + - jupyter --version + - jlpm install + - jlpm run build + - jupyter labextension install + + +script: + - jupyter labextension list + - jupyter lab --port=8845 --NotebookApp.token='' & + - pytest + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..72510dc --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +jupyter +jupyterlab>2.0.0 +selenium +pytest diff --git a/tests/geckodriver.log b/tests/geckodriver.log new file mode 100644 index 0000000..d086416 --- /dev/null +++ b/tests/geckodriver.log @@ -0,0 +1,1549 @@ +1594774590036 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/_5/wyf3bvcj2kv12rf7j4q2pvkm0000gn/T/rust_mozprofileyYtVgy" +1594774594404 Marionette INFO Listening on port 52879 +1594774767752 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/_5/wyf3bvcj2kv12rf7j4q2pvkm0000gn/T/rust_mozprofileOjaqxE" +1594774770145 Marionette INFO Listening on port 52958 +1594774770212 Marionette WARN TLS certificate errors will be ignored for this session +1594774771481 Marionette WARN TimedPromise timed out after 0 ms: stacktrace: +TimedPromise/<@chrome://marionette/content/sync.js:245:13 +TimedPromise@chrome://marionette/content/sync.js:230:10 +Sleep@chrome://marionette/content/sync.js:283:10 +dispatchPause@chrome://marionette/content/action.js:1482:10 +toEvents/<@chrome://marionette/content/action.js:1156:16 +action.dispatchTickActions@chrome://marionette/content/action.js:1060:35 +action.dispatch/chainEvents<@chrome://marionette/content/action.js:1028:20 +action.dispatch@chrome://marionette/content/action.js:1034:5 +performActions@chrome://marionette/content/listener.js:853:16 +dispatch/