-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.92 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
language: rust
rust:
- stable
env:
# Test with different FF versions the $CHECKSUM is the output from sha256sum
- FF_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2" CHECKSUM="f0fd11357de7250660f1a5c5b209c44de1d0f50bb1d3444dd2afad6b41e15b9d firefox-55.0.3.tar.bz2"
- FF_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/60.0/linux-x86_64/en-US/firefox-60.0.tar.bz2" CHECKSUM="185808361d70600150f3f63047fa214d86218df0ba6f3a3611f8fb23cd28b8b1 firefox-60.0.tar.bz2"
- FF_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0/linux-x86_64/en-US/firefox-62.0.tar.bz2" CHECKSUM="7c64a66e227d563fff726660b0f424390939814560d8b585346f6602d7bd1651 firefox-62.0.tar.bz2"
- FF_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/64.0/linux-x86_64/en-US/firefox-64.0.tar.bz2" CHECKSUM="81a169d7541735059645b4021c3ab2332af016214d3726be58fcd376b601755f firefox-64.0.tar.bz2"
- FF_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/68.0/linux-x86_64/en-US/firefox-68.0.tar.bz2" CHECKSUM="bf89f1342cf29a95fdd979b3344777a5c73c6f96d5ea29261c35c2084901aac3 firefox-68.0.tar.bz2"
before_script:
- wget $FF_URL
- FNAME=$(basename $FF_URL)
- echo "$CHECKSUM" | sha256sum -c
- tar axf $FNAME
- export PATH=$PWD/firefox:$PATH
- which firefox
- MOZ_HEADLESS=1 firefox --marionette 2>/dev/null &
script:
- cargo build --verbose --all
# firefox can only have one active connection/session
# disable threading in tests to avoid failures
- export RUST_TEST_THREADS=1
- export RUST_LOG=marionette=debug,ff=debug,manual=debug
- export RUST_BACKTRACE=1
- export MOZ_HEADLESS=1
# Some tests in the manual require a running instance
- export PATH=$PATH:$(pwd)/target/debug
- ff -vvv start --port 7766
- export FF_PORT=7766
- sleep 10
- cargo test --all --verbose
# bash tests
- ff/tests/runner.sh