2018-06-19 22:33:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo ""
|
|
|
|
echo "Test webextension-polyfill on real browsers"
|
|
|
|
echo "==========================================="
|
2018-05-10 21:55:05 +00:00
|
|
|
|
|
|
|
export PATH=$PATH:./node_modules/.bin/
|
|
|
|
|
|
|
|
## HEADLESS=1 Enable the headless mode (currently used only on Firefox
|
|
|
|
## because Chrome doesn't currently support the extensions in headless mode)
|
|
|
|
export HEADLESS=1
|
|
|
|
|
2018-06-19 22:33:12 +00:00
|
|
|
echo ""
|
|
|
|
echo "Run smoketests on Chrome"
|
2018-05-10 21:55:05 +00:00
|
|
|
TEST_BROWSER_TYPE=chrome npm run test-integration | tap-nirvana
|
|
|
|
|
2018-06-19 22:33:12 +00:00
|
|
|
echo ""
|
|
|
|
echo "Run smoketests on Firefox"
|
|
|
|
TEST_BROWSER_TYPE=firefox npm run test-integration | tap-nirvana
|