Skip to content

Instantly share code, notes, and snippets.

View brookslyrette's full-sized avatar
🏠
Working from home from now until forever.

Brooks Lyrette brookslyrette

🏠
Working from home from now until forever.
View GitHub Profile
@brookslyrette
brookslyrette / gist:19ddd382d6aaaf831ab9
Created October 6, 2014 20:19
node-iracing (this.cars.driverCar)
{ CarIdx: 63,
UserName: 'Brooks Lyrette',
AbbrevName: null,
Initials: null,
UserID: 30223,
CarNumber: '9',
CarNumberRaw: 9,
CarPath: 'rt2000',
CarClassID: 1,
CarID: 1,
@brookslyrette
brookslyrette / gist:b73b979967faf70c8817
Last active August 29, 2015 14:07
node-iracing (this.sessions.weekend)
"session": {
TrackName: 'summit summit raceway',
TrackID: 9,
TrackLength: '3.20 km',
TrackDisplayName: 'Summit Point Raceway',
TrackDisplayShortName: 'Summit',
TrackCity: 'Summit Point',
TrackCountry: 'USA',
TrackAltitude: '191.90 m',
TrackLatitude: '39.235223 m',
{ [Function: SessionManager]
currentSessionId: 50162992,
sessions:
{ '0':
{ id: 0,
SessionNum: 0,
SessionLaps: 'unlimited',
SessionTime: '300.00 sec',
SessionNumLapsToAvg: 0,
SessionType: 'Practice',
# specs and cukes results are stored in JUnit format under test-reports
if (grep 'Failures: [^0]' surefire-reports/* || grep 'Errors: [^0]' surefire-reports/*); then
curl -H "Authorization: token MY_TOKEN" --request POST --data '{"state": "failure", "description": "Build Failed!", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/USER/REPO/statuses/${bamboo.repository.revision.number} > /dev/null
else
curl -H "Authorization: token MY_TOKEN" --request POST --data '{"state": "success", "description": "Build Passed", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/USER/REPO/statuses/${bamboo.repository.revision.number} > /dev/null
fi
@brookslyrette
brookslyrette / gist:c10e777ec385f252d6e1
Created January 21, 2015 12:01
Counting tests run in surefire.
grep -o 'Tests run: [0-9]\{1,\}' target/surefire-reports/*.txt | grep -o '[0-9]\{1,\}' | awk '{ SUM += $1} END { print SUM }'
cd ${bamboo.build.working.directory}
if ls **/test-results/*.xml 1> /dev/null 2>&1; then
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "success", "context": "build", "description": "Build Passed", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/<username>/<repo_name>/statuses/${bamboo.repository.revision.number} > /dev/null
else
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "failure", "context": "build", "description": "Build Failed!", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/<username>/<repo_name>/statuses/${bamboo.repository.revision.number} > /dev/null
fi
##check for test failures.
if (grep 'failure message' **/test-results/*.xml 1> /dev/null 2>&1) then
mainJunit=$(find **/test-results/*.xml -print0 | xargs -0 grep 'failure message' | wc -l)
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "failure", "context": "tests", "
curl -H "Authorization: token <your_githib_api_token>" --request POST --data '{"state": "pending", "context": "build", "description": "Build is running", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/<username>/<repo_name>/statuses/${bamboo.repository.revision.number} > /dev/null
buildscript {
ext {
springBootVersion = '1.3.0.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
{
"name": "demo-starter",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('styles', function() {
//compile and copy our sass file
gulp.src('src/main/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('src/main/resources/static/css/'));
//copy over the bootstrap fonts
gulp.src('node_modules/bootstrap-sass/assets/fonts/bootstrap/*')