zotero/.travis.yml

54 lines
1.7 KiB
YAML
Raw Normal View History

sudo: false
2017-06-01 20:02:36 +00:00
language: node_js
node_js:
- "node"
cache:
directories:
2017-06-21 05:23:10 +00:00
- "build"
2017-06-01 20:02:36 +00:00
- "node_modules"
2015-05-19 08:07:09 +00:00
env:
2017-06-15 14:39:16 +00:00
global:
secure: "NxvkbZ7/Op7BTGQRR3C4q8lLoO29f8WtyNN27NSH7AO3H0vBr1Vp5xO8gn+H2qHEug5HvM+YrZ/xAkNXaZVbOInmBmKVMxqVvdpKp9JM1Amf+gzsXWQphfySvs6iqzyP6cwU/jspdvX/WSakgU5v7PWXxtUIaKxdANt6Rw7W+Pc="
2017-06-15 14:39:16 +00:00
matrix:
- FX_VERSION="54.0"
- FX_VERSION="52.0.3"
2015-05-19 08:07:09 +00:00
matrix:
fast_finish: true
#allow_failures:
# - env: FX_CHANNEL="beta"
2015-05-19 08:07:09 +00:00
notifications:
email: false
install:
- if [ $FX_VERSION = "52.0.3" ]; then
wget -O tarball "https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-release-linux64-add-on-devel/1491732920/firefox-52.0.3.en-US.linux-x86_64-add-on-devel.tar.bz2";
fi
- if [ $FX_VERSION = "54.0" ]; then
wget -O tarball "https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-release-linux64-add-on-devel/1496944705/firefox-54.0.en-US.linux-x86_64-add-on-devel.tar.bz2";
2016-08-08 06:57:45 +00:00
fi
- tar xf tarball
2015-05-19 08:07:09 +00:00
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm i
- npm run build
- if [ $FX_VERSION = "54.0" ] &&
2017-06-15 14:39:16 +00:00
[ $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
2015-05-19 08:07:09 +00:00
script:
- test/runtests.sh -x firefox/firefox -f