2016-10-10 00:48:35 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
## Some of the ES6 syntax used in the browser-polyfill sources is only supported on nodejs >= 6
|
2018-05-10 21:55:05 +00:00
|
|
|
## and the selenium-webdriver dependency used by the integration tests requires nodejs >= 8.
|
|
|
|
- '8'
|
2016-10-10 00:48:35 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- npm run build
|
2017-02-08 00:00:31 +00:00
|
|
|
- npm run test-coverage
|
2017-04-12 15:30:33 +00:00
|
|
|
- echo "RE-RUN tests on the minified file" && npm run test-minified
|
|
|
|
- echo "RE-RUN tests on the webpack and browserify bundled files" &&
|
2018-04-09 12:18:37 +00:00
|
|
|
npm install -g browserify webpack webpack-cli &&
|
2017-04-12 15:30:33 +00:00
|
|
|
./test/run-module-bundlers-smoketests.sh
|
2017-10-23 17:42:01 +00:00
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2018-06-19 21:29:35 +00:00
|
|
|
- echo "RUN integration tests on real browsers" &&
|
2018-05-10 21:55:05 +00:00
|
|
|
TRAVIS_CI=true ./test/run-browsers-smoketests.sh
|
|
|
|
|
|
|
|
## See https://docs.travis-ci.com/user/chrome
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
addons:
|
|
|
|
firefox: 'latest'
|
|
|
|
chrome: 'stable'
|
2016-10-10 00:48:35 +00:00
|
|
|
|
|
|
|
after_script: npm run publish-coverage
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
2016-11-02 20:51:12 +00:00
|
|
|
- irc.mozilla.org#webextensions
|
2016-10-10 00:48:35 +00:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2016-11-14 21:34:17 +00:00
|
|
|
use_notice: true
|
|
|
|
template:
|
|
|
|
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (%{build_url})"
|
2017-04-13 11:40:20 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: npm
|
|
|
|
email: addons-dev-automation+npm@mozilla.com
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: mozilla/webextension-polyfill
|
|
|
|
branch: master
|
|
|
|
api_key:
|
2018-07-16 11:59:40 +00:00
|
|
|
secure: K4rZPsnERK4hiVJICp2MGjLSiL64AeDc0yxmr54/ZlbAYy5OhtDrtaZ0L65eGx+HuIgVQbduSNn1zBN/Bx7w8zmYVyXdTVD1HqXuopS+vmBTrwW/d28uKdpCcMo311ODbk//AL3ylTCeOMkSsLsbb5Io6zcEpuw0VLtSNSrytaA85vcUIj2l8iurLrThN3r7iIsIEHceCzDo3KDx/o4yh7cEKs0FP9Jl8A6jm8sTt/j3jLmsxFFXp/SWOvPCQFX1hCu2uLgCtoLbFJlaDq2+RzsEXv4K5Ee5coVtc4vLRiNjC1UP7cHqfN8VZ0I2LeVT79MRmLqRAccGCSMdarFgoA2SW1laNch0vXy6hBSluh+OVJVPDrz7Xdyy70rt+57tJYFCtpZ24E6X+GNyOOMYfIsatvv59h5R6vE3hWvNZVtiOhYw9wMrKBA9rLkzyoCXeEVu4BuU834RbeeYUAg9VR6WZ1U2nD4IxGr33mSPDqsA6tOhr7tM0kEmg2eVe8qHop8BRtUAhQfkY6C+kfRkPE0OZBq4kiWcfugRJyKI7rAp9T5JNUSLW5X1KrvRv0RBaDr8SKFaWHE4N5Dbt/u2zluq+wJn/n5IxvEFDHSAzxLWBDz+LsmZ1eXRdfA+Pu4cyIKjMX1O8yPAnX8RCTc9oq8Qj74l5rXzCJtmygRdf2I=
|