mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-11 10:49:58 +01:00
Attempt to install codecov (#543)
* Attempt to install codecov * Create .codecov.yml * Update .travis.yml * Add simplecov * Add docker volume and change formatter * Remove unneccessary files and fix rubocop issues * Remove coveralls and add more filters * modify gitignore * add .simplecov file * remove docker volume
This commit is contained in:
11
.codecov.yml
Normal file
11
.codecov.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
comment:
|
||||||
|
layout: "reach, diff, flags, files"
|
||||||
|
behavior: default
|
||||||
|
require_changes: false # if true: only post the comment if coverage changes
|
||||||
|
require_base: no # [yes :: must have a base report to post]
|
||||||
|
require_head: yes # [yes :: must have a head report to post]
|
||||||
|
branches: null # branch names that can post comment
|
||||||
|
coverage:
|
||||||
|
status:
|
||||||
|
project: off
|
||||||
|
patch: off
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
service_name: travis-ci
|
|
||||||
repo_token: REPO_TOKEN
|
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -20,7 +20,7 @@
|
|||||||
log/
|
log/
|
||||||
tmp/*
|
tmp/*
|
||||||
tmp/**/*
|
tmp/**/*
|
||||||
coverage*
|
coverage/
|
||||||
public/warpables/*
|
public/warpables/*
|
||||||
public/system/*
|
public/system/*
|
||||||
public/warps/*
|
public/warps/*
|
||||||
@@ -41,4 +41,5 @@ public/lib
|
|||||||
node_modules
|
node_modules
|
||||||
todo.txt
|
todo.txt
|
||||||
.sass-cache
|
.sass-cache
|
||||||
.byebug_history
|
.byebug_history
|
||||||
|
coverage_report/
|
||||||
|
|||||||
14
.simplecov
Normal file
14
.simplecov
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
require 'simplecov-cobertura'
|
||||||
|
|
||||||
|
if ENV['CI'] == 'true'
|
||||||
|
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
|
||||||
|
else
|
||||||
|
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
||||||
|
end
|
||||||
|
|
||||||
|
SimpleCov.start 'rails' do
|
||||||
|
add_filter '/test/'
|
||||||
|
add_filter '/db/'
|
||||||
|
add_filter '/log/'
|
||||||
|
add_filter '/tmp/'
|
||||||
|
end
|
||||||
4
.travis.yml
Normal file → Executable file
4
.travis.yml
Normal file → Executable file
@@ -12,10 +12,10 @@ install:
|
|||||||
- docker-compose exec web bash -l -c "rake db:setup || rake db:migrate"
|
- docker-compose exec web bash -l -c "rake db:setup || rake db:migrate"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sed -ri "s/REPO_TOKEN/$REPO_TOKEN/" .coveralls.yml
|
|
||||||
- docker-compose exec web bash -l -c "CI=true TRAVIS=true rake test:all"
|
- docker-compose exec web bash -l -c "CI=true TRAVIS=true rake test:all"
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
- unstable
|
- unstable
|
||||||
|
|||||||
3
Gemfile
3
Gemfile
@@ -19,7 +19,6 @@ group :dependencies do
|
|||||||
gem "ruby-openid", "~>2.5"
|
gem "ruby-openid", "~>2.5"
|
||||||
gem "open_id_authentication"
|
gem "open_id_authentication"
|
||||||
gem "RubyInline"
|
gem "RubyInline"
|
||||||
gem "coveralls", require: false
|
|
||||||
gem "paperclip", "~>4.3.7"
|
gem "paperclip", "~>4.3.7"
|
||||||
|
|
||||||
# if you use amazon s3 for warpable image storage
|
# if you use amazon s3 for warpable image storage
|
||||||
@@ -40,6 +39,8 @@ group :dependencies do
|
|||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
gem 'simplecov', require: false
|
||||||
|
gem 'simplecov-cobertura', require: false
|
||||||
gem 'test-unit'
|
gem 'test-unit'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
14
Gemfile.lock
14
Gemfile.lock
@@ -45,12 +45,6 @@ GEM
|
|||||||
cocaine (0.5.8)
|
cocaine (0.5.8)
|
||||||
climate_control (>= 0.0.3, < 1.0)
|
climate_control (>= 0.0.3, < 1.0)
|
||||||
concurrent-ruby (1.1.5)
|
concurrent-ruby (1.1.5)
|
||||||
coveralls (0.8.22)
|
|
||||||
json (>= 1.8, < 3)
|
|
||||||
simplecov (~> 0.16.1)
|
|
||||||
term-ansicolor (~> 1.3)
|
|
||||||
thor (~> 0.19.4)
|
|
||||||
tins (~> 1.6)
|
|
||||||
docile (1.3.1)
|
docile (1.3.1)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
@@ -154,6 +148,8 @@ GEM
|
|||||||
docile (~> 1.1)
|
docile (~> 1.1)
|
||||||
json (>= 1.8, < 3)
|
json (>= 1.8, < 3)
|
||||||
simplecov-html (~> 0.10.0)
|
simplecov-html (~> 0.10.0)
|
||||||
|
simplecov-cobertura (1.3.1)
|
||||||
|
simplecov (~> 0.8)
|
||||||
simplecov-html (0.10.2)
|
simplecov-html (0.10.2)
|
||||||
sprockets (2.2.3)
|
sprockets (2.2.3)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
@@ -161,8 +157,6 @@ GEM
|
|||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
sqlite3 (1.4.0)
|
sqlite3 (1.4.0)
|
||||||
term-ansicolor (1.7.1)
|
|
||||||
tins (~> 1.0)
|
|
||||||
test-unit (3.3.2)
|
test-unit (3.3.2)
|
||||||
power_assert
|
power_assert
|
||||||
therubyracer (0.12.3)
|
therubyracer (0.12.3)
|
||||||
@@ -170,7 +164,6 @@ GEM
|
|||||||
ref
|
ref
|
||||||
thor (0.19.4)
|
thor (0.19.4)
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
tins (1.20.2)
|
|
||||||
treetop (1.4.15)
|
treetop (1.4.15)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
@@ -190,7 +183,6 @@ DEPENDENCIES
|
|||||||
autoprefixer-rails
|
autoprefixer-rails
|
||||||
aws-sdk (~> 1.5.7)
|
aws-sdk (~> 1.5.7)
|
||||||
byebug
|
byebug
|
||||||
coveralls
|
|
||||||
friendly_id
|
friendly_id
|
||||||
geokit-rails (= 1.1.4)
|
geokit-rails (= 1.1.4)
|
||||||
image_science (= 1.2.6)
|
image_science (= 1.2.6)
|
||||||
@@ -208,6 +200,8 @@ DEPENDENCIES
|
|||||||
right_aws
|
right_aws
|
||||||
ruby-openid (~> 2.5)
|
ruby-openid (~> 2.5)
|
||||||
sass
|
sass
|
||||||
|
simplecov
|
||||||
|
simplecov-cobertura
|
||||||
sprockets
|
sprockets
|
||||||
sqlite3
|
sqlite3
|
||||||
test-unit
|
test-unit
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## MapKnitter 2 [](https://coveralls.io/github/publiclab/mapknitter?branch=%28HEAD+detached+at+FETCH_HEAD%29)
|
## MapKnitter 2 [](https://coveralls.io/github/publiclab/mapknitter?branch=%28HEAD+detached+at+FETCH_HEAD%29) [](https://codecov.io/gh/publiclab/mapknitter)
|
||||||
|
|
||||||
Use Public Lab's open source MapKnitter to upload your own aerial photographs (for example those from balloon or kite mapping: http://publiclab.org/balloon-mapping) and combine them into:
|
Use Public Lab's open source MapKnitter to upload your own aerial photographs (for example those from balloon or kite mapping: http://publiclab.org/balloon-mapping) and combine them into:
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
require 'coveralls'
|
|
||||||
Coveralls.wear!('rails')
|
|
||||||
ENV["RAILS_ENV"] = "test"
|
ENV["RAILS_ENV"] = "test"
|
||||||
|
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
require File.expand_path('../../config/environment', __FILE__)
|
require File.expand_path('../../config/environment', __FILE__)
|
||||||
require 'rails/test_help'
|
require 'rails/test_help'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user