3e0ab63b9b
I think it's more useful to see that tests failed sooner than to see all errors from a test run, particularly since earlier failures often cause meaningless later failures anyway. And since spurious failures are fairly common, this will also let us restart tests more quickly without searching for "[FAIL]" in the output while it's running. This does mean that, if there's a legitimate test failure you overlooked, it might be worth running tests locally after fixing it to make sure there aren't other instances of the problem that can be fixed at the same time.
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
sudo: false
|
|
language: node_js
|
|
node_js:
|
|
- "node"
|
|
cache:
|
|
directories:
|
|
- "node_modules"
|
|
env:
|
|
global:
|
|
secure: "NxvkbZ7/Op7BTGQRR3C4q8lLoO29f8WtyNN27NSH7AO3H0vBr1Vp5xO8gn+H2qHEug5HvM+YrZ/xAkNXaZVbOInmBmKVMxqVvdpKp9JM1Amf+gzsXWQphfySvs6iqzyP6cwU/jspdvX/WSakgU5v7PWXxtUIaKxdANt6Rw7W+Pc="
|
|
matrix:
|
|
- FX_VERSION="54.0b"
|
|
- FX_VERSION="45.0.2esr"
|
|
matrix:
|
|
fast_finish: true
|
|
#allow_failures:
|
|
# - env: FX_CHANNEL="beta"
|
|
notifications:
|
|
email: false
|
|
install:
|
|
- if [ $FX_VERSION = "45.0.2esr" ]; then
|
|
wget -O tarball "https://archive.mozilla.org/pub/firefox/releases/45.0.2esr/linux-x86_64/en-US/firefox-45.0.2esr.tar.bz2";
|
|
fi
|
|
- if [ $FX_VERSION = "54.0b" ]; then
|
|
wget -O tarball "https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-beta-linux64-add-on-devel/1496339244/firefox-54.0.en-US.linux-x86_64-add-on-devel.tar.bz2";
|
|
fi
|
|
- tar xf tarball
|
|
before_script:
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
- npm i
|
|
- node_modules/.bin/gulp build
|
|
- if [ $FX_VERSION = "54.0b" ] &&
|
|
[ $TRAVIS_REPO_SLUG = "zotero/zotero" ] &&
|
|
[ $TRAVIS_BRANCH = "master" ] &&
|
|
[ $TRAVIS_PULL_REQUEST = "false" ]; then
|
|
mkdir build-zip;
|
|
cd build;
|
|
zip -r ../build-zip/$TRAVIS_COMMIT.zip *;
|
|
cd ..;
|
|
gem install dpl;
|
|
dpl --provider=s3
|
|
--access-key-id=AKIAJFDVJ54MCAEXPQ5Q
|
|
--bucket=zotero-download
|
|
--local-dir=build-zip
|
|
--upload-dir=ci/client
|
|
--acl=public-read
|
|
--skip_cleanup=true;
|
|
fi
|
|
- unset AWS_SECRET_ACCESS_KEY
|
|
script:
|
|
- test/runtests.sh -x firefox/firefox -f
|