Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '87-get-travis-working'
- Loading branch information
Showing
14 changed files
with
81 additions
and
258 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--colour | ||
--format progress |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: ruby | ||
rvm: | ||
- 1.9.3 | ||
bundler_args: --without development | ||
services: postgresql | ||
before_install: | ||
- gem update --system 1.8.25 # since ZenTest needs ~> 1.8 | ||
- gem --version | ||
before_script: ./ci/before_script.sh | ||
script: rake ci |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[![Build Status](https://travis-ci.org/marnen/quorum2.png?branch=master)](https://travis-ci.org/marnen/quorum2) | ||
|
||
# Quorum Calendar System | ||
|
||
This is the Quorum Calendar System, an easy-to-use solution for collaborative scheduling. For more information, please see http://quorum2.sf.net. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env sh | ||
./ci/install_postgis.sh | ||
./ci/create_config_files.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env sh | ||
warn () { | ||
printf >&2 "$*" | ||
} | ||
|
||
warn 'Setting up config files... ' | ||
cat >config/database.yml <<EOF | ||
test: | ||
adapter: postgis | ||
database: quorum2_test | ||
username: postgres | ||
encoding: UTF8 | ||
EOF | ||
warn 'config/database.yml ' | ||
|
||
cp config/config-orig.yml config/config.yml | ||
warn 'config/config.yml ' | ||
|
||
cat >config/initializers/secret_token.rb 2>/dev/null <<EOF | ||
Quorum2::Application.config.secret_token = '`bundle exec rake secret`' | ||
EOF | ||
warn 'config/initializers/secret_token.rb ' | ||
|
||
warn "done\n" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env sh | ||
|
||
# PostGIS installation stuff from https://github.com/geoalchemy/geoalchemy2/pull/43/files | ||
# TODO: this could really use some refinement | ||
|
||
echo >&2 'Installing PostGIS...' | ||
sudo apt-add-repository -y ppa:sharpie/for-science | ||
sudo apt-add-repository -y ppa:sharpie/postgis-nightly | ||
sudo apt-get update | ||
sudo apt-get install postgresql-9.1-postgis -q | ||
echo >&2 'PostGIS installed!' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace :db do | ||
desc 'Install PostGIS in the database' | ||
task install_postgis: :environment do | ||
ActiveRecord::Base.connection.execute 'CREATE EXTENSION postgis;' | ||
end | ||
|
||
desc 'Create database and load PostGIS and schema' | ||
task setup_with_postgis: %w(db:create db:install_postgis db:schema:load) | ||
end | ||
|
||
desc 'Run CI tests (intended for Travis)' | ||
task ci: 'db:setup_with_postgis' do | ||
sh 'bundle exec rspec -O .rspec.travis' | ||
sh 'bundle exec cucumber' | ||
end |
This file contains 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
This file contains 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
This file contains 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
This file contains 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