Skip to content

Instantly share code, notes, and snippets.

dragTemplateToCurrent(id) {
this.api.drag(
'.wi-SourceTemplates [data-id="' + id + '"]',
'.wi-DestinationTemplates'
);
return this;
},
/**
* @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)
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 })))
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
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'));
});
#!/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
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
#!/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
"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"
},
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,