Skip to content

Commit

Permalink
travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
biwek committed Aug 7, 2018
1 parent 1480474 commit 4cc2803
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: false
language: ruby
addons:
postgresql: "9.6"
env:
- DB=postgresql STAGE=test
services:
- postgresql
branches:
only:
- master
bundler_args: --without="production development local"
cache: bundler
before_install:
- gem install bundler
before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'create database abhinav_test' -U postgres
- bin/rake secret | xargs echo -e 'test:\n secret_key_base:' > config/secrets.yml
script:
- bundle exec rubocop
- RAILS_ENV=test bin/rake db:test:prepare --trace
- bundle exec rspec
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AbhinavNepal

[![Build Status](https://travis-ci.com/AbhinavNepal/abhinav-nepal.svg?branch=master)](https://travis-ci.com/AbhinavNepal/abhinav-nepal)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/AbhinavNepal/abhinav-nepal/blob/master/LICENSE)

[AbhinavNepal](https://abhinavnepal.com) is an open source, Ruby on Rails platform that provides useful resources to help anyone interested in doing science and innovation related works in or for Nepal.
Expand Down
4 changes: 4 additions & 0 deletions config/database.yml.travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
adapter: postgresql
database: abhinav_test
username: postgres

0 comments on commit 4cc2803

Please sign in to comment.