diff --git a/.eslintignore b/.eslintignore index 941eaa3fb..322608d70 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,3 +5,4 @@ intl/* locales/* **/*.min.js **/node_modules/* +scratch-gui/* diff --git a/.travis.yml b/.travis.yml index 365e0ab47..33d4eb9fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,8 +94,8 @@ jobs: - cd test/integration - npm install - cd - - script: npm run smoke + script: npm run smoke-sauce stages: - test - name: smoke - if: branch IN (travis) and type != pull_request + if: type != pull_request diff --git a/dev-server/index.js b/dev-server/index.js index 61874bd15..5ab70abbd 100644 --- a/dev-server/index.js +++ b/dev-server/index.js @@ -21,7 +21,18 @@ routes.forEach(route => { app.get(route.pattern, handler(route)); }); -app.use(webpackDevMiddleware(compiler)); +var middlewareOptions = {}; +if (process.env.USE_DOCKER_WATCHOPTIONS) { + middlewareOptions = { + watchOptions: { + aggregateTimeout: 500, + poll: 2500, + ignored: ['node_modules', 'build'] + } + }; +} + +app.use(webpackDevMiddleware(compiler, middlewareOptions)); var proxyHost = process.env.FALLBACK || ''; if (proxyHost !== '') { diff --git a/docker-compose.yml b/docker-compose.yml index 4c331ef2b..2358167b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: environment: - API_HOST=http://localhost:8491 - FALLBACK=http://localhost:8080 + - USE_DOCKER_WATCHOPTIONS=true build: context: ./ dockerfile: Dockerfile diff --git a/src/components/social-message/social-message.scss b/src/components/social-message/social-message.scss index 8dfc5db75..b6cdcc871 100644 --- a/src/components/social-message/social-message.scss +++ b/src/components/social-message/social-message.scss @@ -13,7 +13,7 @@ } .social-message.mod-unread { - background-color: lighten($ui-blue, 40); + background-color: $ui-blue-10percent; } .social-message.mod-unread .social-message-icon { diff --git a/test/integration/selenium-helpers.js b/test/integration/selenium-helpers.js index dcd96476f..5b6e6e392 100644 --- a/test/integration/selenium-helpers.js +++ b/test/integration/selenium-helpers.js @@ -3,6 +3,8 @@ const bindAll = require('lodash.bindall'); const headless = process.env.SMOKE_HEADLESS || false; const remote = process.env.SMOKE_REMOTE || false; +const ci = process.env.CI || false; +const buildID = process.env.TRAVIS_BUILD_NUMBER; const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env; const {By, until} = webdriver; @@ -24,7 +26,13 @@ class SeleniumHelper { } buildDriver (name) { if (remote === 'true'){ - this.driver = this.getSauceDriver(SAUCE_USERNAME, SAUCE_ACCESS_KEY, name); + let nameToUse; + if (ci === 'true'){ + nameToUse = 'travis ' + buildID + ' : ' + name; + } else { + nameToUse = name; + } + this.driver = this.getSauceDriver(SAUCE_USERNAME, SAUCE_ACCESS_KEY, nameToUse); } else { this.driver = this.getDriver(); }