diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..b009dfb --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/.travis.yml b/.travis.yml index f2068f4..0cd27c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,34 @@ language: node_js -node_js: 'lts/*' -dist: trusty -sudo: required env: global: - - CC_TEST_REPORTER_ID=9cf7da023bab612f3146e176b8b0a327a3a309a8af2e7a3e468967a7fe4600b4 + - CC_TEST_REPORTER_ID=9cf7da023bab612f3146e176b8b0a327a3a309a8af2e7a3e468967a7fe4600b4 + - SAUCE_USERNAME=nomego + - secure: cQBITrMNen1VJ7rov8APzDC+SdrKmkObpBw3q/tHAYryvw3GhXMLYCFTyLWYCOu0v34OmH3Cu4JEceTFdD74KAXez8CvR140ObVCiS57orVv3V0uUDZB0+2V6qJxHAbWWjuGZsO87RSlZo5eVYW/ELEjPjV5b/OBIrvfx/jOq5+v8KcdYjcnt4LLkZuvyFwPQ8z8LaaUIfjh+LBg7D5C8ISaDs0n1R9dBlZyXyXCExteRCjrGvq2SvfqihNl5Ou7OVT0TMSKIy+AgpIrGHC+R50LLG1vDA+Ryb2qW7gdn/7GX1SUIbDzI0AU1gv+SdJqwY/76aS4PdKzOPtFsbo825p80s4Pq8FREp4ULGLibPc6gUptcQieDo3orJD+C0j/0843GQjfwDq7/KjEBAO1ekMvxdbCaOGOAAZBG+gWj1/TA2ZnCvkjRnoc5MZcb3SQoY+RPea54gkQ3VGC6OvIcn+llMdo3JUI34PAsD0PHD4LgtYLBmkNltjfMEak4bIikkHT6WBErWfn7cC9bwaVppXJa5ih4rEd8tZdu560CYtqUM9ObeAvyskkbUeTmIaDrkzfGXqwcxrG90RFLV22ZMzxIxNFokukA8fWjRhEGa2xXe4hZCgp+NN617Xkv9c6h/De63g2C6tsr9aB33gjTKLHkYYC18VMlRfSk7F/3t4= addons: firefox: latest apt: sources: - - google-chrome + - google-chrome packages: - - google-chrome-stable + - google-chrome-stable cache: yarn: true directories: - - node_modules - - bower_components - - bower_components-1.x - - .eslintcache - - $HOME/.cache/bower + - node_modules + - bower_components + - bower_components-1.x + - ".eslintcache" + - "$HOME/.cache/bower" before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build - - yarn run lint +- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 + > ./cc-test-reporter +- chmod +x ./cc-test-reporter +- "./cc-test-reporter before-build" +- yarn run lint script: - - xvfb-run yarn test +- yarn test after_script: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT +- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT" notifications: slack: secure: Ijq6DWrCfSGCDv6a5OgzpcNNFNJDtOkBel67AzizrSYEPGExe6YVp9Hp41ln8BGMgO3KNguM11SAWsEy9r8slCE9rcWeYVlIRxQo+0Tvggahz9oCNqh10Mn+0qtg+YKILv4ZnYgLuk0nm3ua2eOV7ypOjXboZ+CYjes4VjwbRbuSO9JT3oui9Kzz/ZXl/TeFwITbMgVQR3Y37O4OxBaXCQGRbkNdI9JfOwl1UmGDqC4i4KLBa2ZKXv4CxH70qxUvEBHpmsCbYOrk2Fj0Njrp5L2Fzs73fy4sKAnfUE9UxRRXTrgfoobBBH+Xw31sU/PZu+R+KPZaWjg9EHEDV6DDyhfAbn5lFbAWoCtgplVsukQP5CxDTugr1fmTxduaxhfaaGyQyAAo7OoexwrlzqCRuLocDRUMNSenxzMuQZe2GAx24MG5HZmCWhz834qrOGONTxUkn8bdI6x/g3xML1BGPzOTdZz/89rF5PDinqoZGJmslpXDc/yH/h//As+9Mbh98+08HFNYoQrdPTL1CqhtYKeUjkijk7CgCUztdLN6RqfbEMfdlxcR7lKQH5r0W5N1nw36qZ+iiL8HlIeG26/wrGX31oi2syo/jV294G6+3YMgqghSXS6hInJ8+GuiQEN4pDvXfK8QqLGxNTTaxdn5GkRvlTuZzuOJZLUhnPtCt+o= diff --git a/.vscode/settings.json b/.vscode/settings.json index e4bdbaf..2efe4c1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,16 @@ { "eslint.autoFixOnSave": true, + "eslint.packageManager": "yarn", "eslint.validate": [ { "language": "javascript", "autoFix": true }, { "language": "html", "autoFix": true } - ] + ], + "files.watcherExclude": { + "**/.git/objects/**": true, + "**/.git/subtree-cache/**": true, + "**/node_modules/**": true, + "**/bower_components/**": true, + "**/bower_components-1.x/**": true + } } diff --git a/wct.conf.json b/wct.conf.json index f295c4d..513e9a4 100644 --- a/wct.conf.json +++ b/wct.conf.json @@ -1,7 +1,19 @@ { "plugins": { "local": { - "browsers": ["chrome", "firefox"] + "browsers": [ + "chrome" + ], + "browserOptions": { + "chrome": [ + "headless", + "disable-gpu", + "no-sandbox" + ], + "firefox": [ + "--headless" + ] + } }, "istanbul": { "dir": "./coverage", @@ -11,6 +23,29 @@ "cosmoz-data-nav.js" ], "exclude": [] + }, + "sauce": { + "browsers": [{ + "browserName": "microsoftedge", + "platform": "Windows 10", + "version": "" + }, { + "browserName": "chrome", + "platform": "Windows 10", + "version": "dev" + }, { + "browserName": "chrome", + "platform": "Windows 10", + "version": "beta" + }, { + "browserName": "firefox", + "platform": "Windows 10", + "version": "" + }, { + "browserName": "safari", + "platform": "macOS 10.13", + "version": "11.1" + }] } } }