mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-03 12:27:30 -05:00
merged docker-compose
This commit is contained in:
commit
66c21d8b33
6 changed files with 26 additions and 5 deletions
|
@ -5,3 +5,4 @@ intl/*
|
||||||
locales/*
|
locales/*
|
||||||
**/*.min.js
|
**/*.min.js
|
||||||
**/node_modules/*
|
**/node_modules/*
|
||||||
|
scratch-gui/*
|
||||||
|
|
|
@ -94,8 +94,8 @@ jobs:
|
||||||
- cd test/integration
|
- cd test/integration
|
||||||
- npm install
|
- npm install
|
||||||
- cd -
|
- cd -
|
||||||
script: npm run smoke
|
script: npm run smoke-sauce
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- name: smoke
|
- name: smoke
|
||||||
if: branch IN (travis) and type != pull_request
|
if: type != pull_request
|
||||||
|
|
|
@ -21,7 +21,18 @@ routes.forEach(route => {
|
||||||
app.get(route.pattern, handler(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 || '';
|
var proxyHost = process.env.FALLBACK || '';
|
||||||
if (proxyHost !== '') {
|
if (proxyHost !== '') {
|
||||||
|
|
|
@ -15,6 +15,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- API_HOST=http://localhost:8491
|
- API_HOST=http://localhost:8491
|
||||||
- FALLBACK=http://localhost:8080
|
- FALLBACK=http://localhost:8080
|
||||||
|
- USE_DOCKER_WATCHOPTIONS=true
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-message.mod-unread {
|
.social-message.mod-unread {
|
||||||
background-color: lighten($ui-blue, 40);
|
background-color: $ui-blue-10percent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-message.mod-unread .social-message-icon {
|
.social-message.mod-unread .social-message-icon {
|
||||||
|
|
|
@ -3,6 +3,8 @@ const bindAll = require('lodash.bindall');
|
||||||
|
|
||||||
const headless = process.env.SMOKE_HEADLESS || false;
|
const headless = process.env.SMOKE_HEADLESS || false;
|
||||||
const remote = process.env.SMOKE_REMOTE || 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 {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env;
|
||||||
const {By, until} = webdriver;
|
const {By, until} = webdriver;
|
||||||
|
|
||||||
|
@ -24,7 +26,13 @@ class SeleniumHelper {
|
||||||
}
|
}
|
||||||
buildDriver (name) {
|
buildDriver (name) {
|
||||||
if (remote === 'true'){
|
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 {
|
} else {
|
||||||
this.driver = this.getDriver();
|
this.driver = this.getDriver();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue