This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dragTemplateToCurrent(id) { | |
this.api.drag( | |
'.wi-SourceTemplates [data-id="' + id + '"]', | |
'.wi-DestinationTemplates' | |
); | |
return this; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {String} dragTarget | |
* @param {String} dropTarget | |
* @chainable | |
*/ | |
exports.command = (dragTarget, dropTarget) => { | |
return init(this) | |
// ensure both drag and drop targets are present | |
.waitForElementPresent(dragTarget) | |
.waitForElementPresent(dropTarget) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assign = (data) => Object.assign(testData, data); | |
module.exports = { | |
before(client, done) { | |
helpers.init(client) | |
.then(() => helpers.createTeam() | |
.then(assign)) | |
.then(() => helpers.createJob(testData.team) | |
.then(job => assign({ job }))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
pre: | |
- echo "address=/dev/127.0.0.1" | sudo tee -a /etc/dnsmasq.conf | |
- sudo /etc/init.d/dnsmasq restart | |
- echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function WebpackReadyPlugin(options) { | |
this.filepath = options.filepath; | |
} | |
WebpackReadyPlugin.prototype.apply = function(compiler) { | |
const filepath = this.filepath; | |
compiler.plugin('done', function() { | |
console.log('touching ' + filepath + ' at ' + new Date()); | |
fs.closeSync(fs.openSync(filepath, 'w')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
echo "Waiting for mothership server to become active" | |
while ! nc -z localhost $MOTHERSHIP_PORT; do sleep 2; done | |
echo "Waiting for beacon to become active" | |
while ! nc -z localhost $SIGNALLING_SERVER_PORT; do sleep 2; done | |
echo "Waiting for admin build to complete" | |
while [ ! -f /tmp/webpack-admin ]; do sleep 2; done | |
echo "Waiting for execution build to complete" | |
while [ ! -f /tmp/webpack-execution]; do sleep 2; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: | |
pre: | |
- ./script/setup-and-start-mothership.sh &> $CIRCLE_ARTIFACTS/mothership.log: | |
background: true | |
parallel: true | |
- ./script/setup-and-start-beacon.sh &> $CIRCLE_ARTIFACTS/beacon.log: | |
background: true | |
parallel: true | |
- npm start &> $CIRCLE_ARTIFACTS/gutenberg.log: | |
background: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
mkdir -p $GOPATH/src/github.com/parsable | |
cd $GOPATH/src/github.com/parsable | |
if [ ! -d "mothership" ]; then | |
git clone [email protected]:parsable/mothership.git | |
fi | |
cd mothership |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"start": "nf start", | |
"backend": "nf start -j Procfile.backend", | |
"nightwatch": "nightwatch --env localChrome", | |
"sauceconnect": "source .env && java -jar ./node_modules/sauce-connect/ext/Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY", | |
"selenium": "selenium-standalone start", | |
"styleguide": "cd src/styles/Styleguide && webpack-dev-server", | |
"test": "karma start" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT sentat, | |
Count(*) | |
FROM (SELECT a.sentat :: DATE, | |
a.userid, | |
a.wi_job_id, | |
Count(*) | |
FROM analytics a | |
WHERE a.userid IS NOT NULL | |
AND a.wi_job_id IS NOT NULL | |
GROUP BY a.sentat :: DATE, |