Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New travis config and rails4 #635

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
81038e2
Creating test env
alaxalves May 14, 2019
7b0cecd
Improving travis setup
alaxalves May 14, 2019
632aee0
Implementing parallel jobs for CI and using db in docker yml
alaxalves May 18, 2019
896048b
ActiveSupport::Testing::Performance extracted to a gem
cesswairimu May 5, 2019
f018d62
ruby prof required as a dependency
cesswairimu May 5, 2019
25b1104
Configurations update for rails 4.0
cesswairimu May 5, 2019
45abc53
disable rubocop on bin folder
cesswairimu May 5, 2019
c9f29bc
http patch
cesswairimu May 5, 2019
d1ae4d3
Comment out to allow testing
cesswairimu May 5, 2019
b696fbd
no longer supports plugin loading
cesswairimu May 5, 2019
757de31
lock to sprockets 2.12
cesswairimu May 5, 2019
b1ef496
Active record patches
cesswairimu May 5, 2019
213d6be
remove deprecated test syntax
cesswairimu May 6, 2019
07b5513
fix failing tests
cesswairimu May 7, 2019
697b4af
change new super class
cesswairimu May 7, 2019
cafc6da
replace right_aws with right_aws_api
cesswairimu May 9, 2019
cfbde97
lock to rails 4.2.11.1
cesswairimu May 14, 2019
5cce36d
change rails version in install script
cesswairimu May 14, 2019
59b5738
remove deprecation warnings
cesswairimu May 14, 2019
0298c6d
make app work
cesswairimu May 14, 2019
f20d031
Change test lib to minitest, add minitest reporters
cesswairimu May 11, 2019
e51e5a4
active record find patches
cesswairimu May 15, 2019
7ccf9b5
root_in_json include defaulted to false
cesswairimu May 16, 2019
fd3d67c
confirm option removed in link helper
cesswairimu May 16, 2019
ee59cdb
cookies serializer changed to hybrid
cesswairimu May 16, 2019
e42f6b5
Change render :text to :plain
cesswairimu May 16, 2019
3e839bc
console for dev web
cesswairimu May 16, 2019
8ab110b
add minitest reporters to travis
cesswairimu May 17, 2019
75db4d1
Check and fix interface functionality
cesswairimu May 18, 2019
be3adbc
fix export functionality
cesswairimu May 21, 2019
8e9c448
remove test reports dirs
cesswairimu May 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
version: 2
plugins:
rubocop:
plugins:
rubocop:
enabled: true
brakeman:
brakeman:
enabled: true
bundler-audit:
bundler-audit:
enabled: true
duplication:
duplication:
enabled: true
config:
languages:
- ruby:
- javascript:
eslint:
eslint:
enabled: true
fixme:
fixme:
enabled: true
rubocop:
rubocop:
enabled: true

exclude_patterns:
- config/
- db/
- vendor/
- log/
- bin/


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ todo.txt
.sass-cache
.byebug_history
coverage_report/
test/reports/
28 changes: 22 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
sudo: required

language: generic

services:
- docker

install:
- cp config/database.yml.example config/database.yml
- cp config/database.yml.test.example config/database.yml
- cp config/config.yml.example config/config.yml
- cp db/schema.rb.example db/schema.rb
- docker-compose up -d --build
- docker-compose exec web bash -l -c "sleep 10"
- docker-compose exec web bash -l -c "bundle install"
- docker-compose exec web bash -l -c "rake db:setup || rake db:migrate"
- docker-compose -f docker-compose.test.yml up -d --build
- >
while (! docker logs mapknitter-test | grep "Phusion Passenger Standalone web server started") > /dev/null 2>&1; do
echo "Waiting for start script to finish...";
sleep 20;
done; echo "Done!"
- docker-compose -f docker-compose.test.yml exec web bash -lc "rake db:setup || rake db:migrate"

env:
global:
- RAILS_ENV=test
matrix:
- TASK="CI=true TRAVIS=true rake test:unit"
- TASK="CI=true TRAVIS=true rake test:integration"
- TASK="CI=true TRAVIS=true rake test:functional"
- TASK="CI=true TRAVIS=true rake assets:precompile"

script:
- docker-compose exec web bash -l -c "CI=true TRAVIS=true rake test:all"
- docker-compose -f docker-compose.test.yml exec web bash -lc "$TASK"
- bash <(curl -s https://codecov.io/bash)

branches:
only:
- main
- unstable

14 changes: 10 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"

ruby "2.4.6"
gem "rails", "~>3.2"
ruby '2.4.6'
gem 'rails', '4.2.11.1'
gem 'rake', '~> 12.3.2'
gem 'skylight'

Expand All @@ -26,7 +26,9 @@ group :dependencies do
gem 'aws-sdk', '~> 1.5.7'

# for rake image migration tasks
gem 'right_aws'
# gem 'right_aws'
gem 'right_aws_api'


# compiling markdown to html
gem "rdiscount", "2.2.0.1"
Expand All @@ -40,9 +42,12 @@ group :dependencies do
end

group :test do
gem 'ruby-prof'
gem 'rails-perftest'
gem 'simplecov', require: false
gem 'simplecov-cobertura', require: false
gem 'test-unit'
gem 'minitest'
gem 'minitest-reporters'
end

group :development, :test do
Expand All @@ -54,6 +59,7 @@ end
group :development do
gem "jshintrb"
gem "therubyracer"
gem 'web-console', '~> 2.0'
end

group :sqlite do
Expand Down
Loading