This file contains hidden or 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
require 'oauth2' | |
class WelcomeController < ApplicationController | |
# You need to configure a tenant at Azure Active Directory(AAD) to register web app and web service app | |
# You will need two entries for these app at the AAD portal | |
# You will put clientid and clientsecret for your web app here | |
# ResourceId is the webservice that you registered | |
# RedirectUri is registered for your web app | |
CLIENT_ID = 'b6a42...' | |
CLIENT_SECRET = 'TSbx..' |
This file contains hidden or 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
To run this: | |
Install node.js first | |
Npm install travis-ci | |
Node trigger_for_me.js | |
Put this into trigger_for_me.js | |
var Travis = require('travis-ci'); | |
var travis = new Travis({ | |
version: '2.0.0' |