Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -x
log=$1
shift
for try in 1 2 3
do
"$@" 2>&1 | tee $log &
sleep 30
#!/bin/bash -x
if [ $CIRCLE_NODE_TOTAL -gt 1 ]
then
echo $CIRCLE_NODE_TOTAL 'Circle CI nodes. Running tests in parallel.'
echo 'This is Circle CI node' $CIRCLE_NODE_INDEX'.'
# First worker should just run unit tests
if [ $CIRCLE_NODE_INDEX -eq 0 ]
then
'use strict';
var https = require('https');
var color = require('colors/safe');
var Utils = require('nightwatch/lib/util/utils');
var endSession = require('../../commands/endSession');
var _client;
module.exports = {
#!/bin/bash -x
if [ $CIRCLE_NODE_TOTAL -gt 1 ]
then
echo $CIRCLE_NODE_TOTAL 'Circle CI nodes. Running tests in parallel.'
echo 'This is Circle CI node' $CIRCLE_NODE_INDEX'.'
# First worker should just run unit tests
if [ $CIRCLE_NODE_INDEX -eq 0 ]
then
# gronk
resource "aws_s3_bucket" "gronk-s3" {
bucket = "wi-gronk-${var.env}"
acl = "public-read"
website {
index_document = "index.html"
error_document = "index.html"
}
tags {
Name = "wi-gronk-${var.env}"
const store = createStore(
combineReducers({
...reducers,
routing: routerReducer
})
)
const history = syncHistoryWithStore(browserHistory, store);
history.listen(location => trackPage(appName, location));
const _ = require('lodash');
const argv = require('minimist')(process.argv.slice(2));
const awspublish = require('gulp-awspublish');
const dotenv = require('dotenv');
const del = require('del');
const GitHubApi = require('github');
const git = require('git-rev')
const gulp = require('gulp');
const gutil = require('gulp-util');
const path = require('path');
'[C475] A template can be added to a template-set via drag and drop.'(client) {
const id = globals.templates[2].id;
templateSetEditor
.navigateTo(setId);
templateSetEditor
.dragTemplateToCurrent(id)
.assert.elementPresent('.wi-DestinationTemplates [data-id="' + id + '"]');
},
var urls = require('../utils/urls');
module.exports = {
elements: {
page: '#Templates',
linkTemplates: '.Header--Links a[href="/templates"]',
linkArchived: 'a[href="/templates/archived"]',
linkArchivedActive: 'a.active[href="/templates/archived"]',
buttonAddTemplate: '#wi-TemplateList-AddTemplate',
buttonAddTemplateSet: '#wi-TemplateList-AddTemplateSet',
@adamrneary
adamrneary / template-sets-tests.js
Last active March 14, 2016 17:53
Simple Nightwatch example facilitated by page objects
'[C469] Template-sets can be archived.'(client) {
templateList
.assert.elementPresent(rowId)
.archiveTemplateSet(templateSetId, client)
.assert.elementNotPresent(rowId)
.navigateToArchived()
.assert.elementPresent(rowId);
},
'[C782] Template-sets can be unarchived.'(client) {