From 1416da2c9951b236c3b9abd0f25e14afb76bd55a Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 12 Oct 2015 14:49:03 -0400 Subject: [PATCH] Playing around with a travis matrix app --- travis-matrix-preview/.gitignore | 2 ++ travis-matrix-preview/Gemfile | 5 +++++ travis-matrix-preview/app.rb | 5 +++++ travis-matrix-preview/config.ru | 2 ++ 4 files changed, 14 insertions(+) create mode 100644 travis-matrix-preview/.gitignore create mode 100644 travis-matrix-preview/Gemfile create mode 100644 travis-matrix-preview/app.rb create mode 100644 travis-matrix-preview/config.ru diff --git a/travis-matrix-preview/.gitignore b/travis-matrix-preview/.gitignore new file mode 100644 index 0000000..77471be --- /dev/null +++ b/travis-matrix-preview/.gitignore @@ -0,0 +1,2 @@ +Gemfile.lock +.*env diff --git a/travis-matrix-preview/Gemfile b/travis-matrix-preview/Gemfile new file mode 100644 index 0000000..6ba5029 --- /dev/null +++ b/travis-matrix-preview/Gemfile @@ -0,0 +1,5 @@ +source 'https://rubygems.org' + +gem 'puma' +gem 'sinatra' +gem 'sinatra-contrib', require: 'sinatra/contrib' diff --git a/travis-matrix-preview/app.rb b/travis-matrix-preview/app.rb new file mode 100644 index 0000000..a5ca7ba --- /dev/null +++ b/travis-matrix-preview/app.rb @@ -0,0 +1,5 @@ +require 'sinatra/base' + +class App < Sinatra::Base + run! if app_file == $PROGRAM_NAME +end diff --git a/travis-matrix-preview/config.ru b/travis-matrix-preview/config.ru new file mode 100644 index 0000000..5b106e2 --- /dev/null +++ b/travis-matrix-preview/config.ru @@ -0,0 +1,2 @@ +require './app' +run App