mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 13:21:29 +00:00
Fix circle
This commit is contained in:
parent
ff62add19f
commit
6d142ea799
4 changed files with 12 additions and 9 deletions
|
@ -53,11 +53,11 @@ jobs:
|
|||
# sudo composer self-update
|
||||
# composer install -n --prefer-dist
|
||||
# download test reporter as a static binary
|
||||
- run:
|
||||
name: Setup Code Climate test-reporter
|
||||
command: |
|
||||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
chmod +x ./cc-test-reporter
|
||||
# - run:
|
||||
# name: Setup Code Climate test-reporter
|
||||
# command: |
|
||||
# curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
# chmod +x ./cc-test-reporter
|
||||
# Only necessary if app uses webpacker or yarn in some other way
|
||||
#- restore_cache:
|
||||
# keys:
|
||||
|
@ -105,10 +105,10 @@ jobs:
|
|||
- run:
|
||||
command: |
|
||||
mkdir /tmp/test-results
|
||||
./cc-test-reporter before-build
|
||||
# ./cc-test-reporter before-build
|
||||
TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
|
||||
bundle exec rspec $TESTFILES --profile 10 -r rspec_junit_formatter --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
|
||||
./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
|
||||
# ./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
|
||||
- store_test_results:
|
||||
path: /tmp/test-results
|
||||
- store_artifacts:
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -90,7 +90,7 @@ end
|
|||
group :test do
|
||||
# gem 'spring'
|
||||
gem 'capybara'
|
||||
# gem 'codeclimate-test-reporter', require: nil
|
||||
gem 'codeclimate-test-reporter', require: nil
|
||||
# FIXME: Downgraded b/c of deprecations, fix static attributes
|
||||
gem 'factory_bot_rails', '4.10.0'
|
||||
gem 'phantomjs', require: 'phantomjs/poltergeist'
|
||||
|
|
|
@ -150,6 +150,8 @@ GEM
|
|||
mini_mime (>= 0.1.3)
|
||||
childprocess (3.0.0)
|
||||
cliver (0.3.2)
|
||||
codeclimate-test-reporter (1.0.7)
|
||||
simplecov
|
||||
coderay (1.1.2)
|
||||
coffee-rails (5.0.0)
|
||||
coffee-script (>= 2.2.0)
|
||||
|
@ -454,6 +456,7 @@ DEPENDENCIES
|
|||
bourbon (~> 3.1.8)
|
||||
capybara
|
||||
carrierwave
|
||||
codeclimate-test-reporter
|
||||
coffee-rails
|
||||
country_select
|
||||
dalli (~> 2.7.0)
|
||||
|
|
|
@ -3,7 +3,7 @@ ENV["RAILS_ENV"] ||= "test"
|
|||
require 'dotenv'
|
||||
Dotenv.load()
|
||||
|
||||
# require "codeclimate-test-reporter"
|
||||
require "codeclimate-test-reporter"
|
||||
require "simplecov"
|
||||
|
||||
# CodeClimate::TestReporter.start
|
||||
|
|
Loading…
Reference in a new issue