Skip to content

Instantly share code, notes, and snippets.

View Talento90's full-sized avatar

Marco Talento Talento90

View GitHub Profile
@Talento90
Talento90 / .travis.yml
Created February 13, 2018 16:43 — forked from ryboe/.travis.yml
Example .travis.yml for Golang
language: go
# Only the last two Go releases are supported by the Go team with security
# updates. Any versions older than that should be considered deprecated.
# Don't bother testing with them. tip builds your code with the latest
# development version of Go. This can warn you that your code will break
# in the next version of Go. Don't worry! Later we declare that test runs
# are allowed to fail on Go tip.
go:
- 1.9
@Talento90
Talento90 / test.js
Created October 10, 2017 16:15 — forked from StephaneTrebel/test.js
Unit testing in nodejs with proxyquire and sinon
// Awesomeness first
const _ = require('lodash');
const proxyquire = require('proxyquire');
const sinon = require('sinon');
// Mocha + Chai are used here but feel free to use your test framework of choice !
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
export default function() {
//window.server = this;
this.get('users', { timing: 4000 });
this.get('itineraries', { timing: 2000 });
};
#Add Groovy Script Permissions: Manage Jenkins » In-process Script Approval and Approve
def job = jenkins.model.Jenkins.instance.getItemByFullName('folder//projname')
def myBuild = job.getBuild('123')
myBuild.keepLog(true)