Skip to content

Commit

Permalink
Remove codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Sep 6, 2019
1 parent 21a0525 commit 918d580
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
\.\#*
.idea/

.coverage
.sass-cache
.bundle
web/down.default.html
/web/down.html
/htmlcov # generated by coverage.py
/pombola/core/static/sass/admin.css
/pombola/core/static/sass/countdown.css
/pombola/core/static/sass/jquery-ui.css
Expand Down
15 changes: 2 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ install:
- bundle install --deployment --path data/gems --binstubs data/gem-bin
# Now install the rest of the required Python packages:
- CFLAGS="-O0" pip install -r requirements.txt
- pip install python-coveralls
# - pip check
# Create a basic general.yml file:
- sed -r
Expand All @@ -41,20 +40,10 @@ before_script:
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d pombola
- ./manage.py migrate --noinput
- ./manage.py collectstatic --noinput
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

script:
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
- ./run-tests --coverage

after_script:
- coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

after_success:
- coveralls
- ./run-tests

env:
- ES_VERSION=0.90.13 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz CC_TEST_REPORTER_ID=cd1a0499050b1eba77e364d2795fae1a2e899607ee6ce307e7351f5b42a34d2d
- ES_VERSION=0.90.13 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
15 changes: 1 addition & 14 deletions run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ EXIT_CODE=0

cd $(dirname "$BASH_SOURCE")

if [ "$1" = "--coverage" ]
then
shift
COVERAGE_PREFIX="coverage run -a --source=pombola,pombola_sayit,wordcloud"
coverage erase
fi


update_exit_code() {
LAST_EXIT_CODE=$?
if [ $LAST_EXIT_CODE != 0 ]
Expand All @@ -29,17 +21,12 @@ TEST_SETTINGS_MODULES=(

for TEST_SETTINGS_MODULE in "${TEST_SETTINGS_MODULES[@]}"
do
COMMAND="$COVERAGE_PREFIX ./manage.py test --settings=$TEST_SETTINGS_MODULE"
COMMAND="./manage.py test --settings=$TEST_SETTINGS_MODULE"
echo Running: $COMMAND "$@"
$COMMAND "$@"
update_exit_code
done

if [ x"$COVERAGE_PREFIX" != x ]
then
coverage html
fi

# If any test failed, make sure we output an error message in red at
# the end of the test run, just in case the test failures from the
# core tests went off the top of the terminal:
Expand Down

0 comments on commit 918d580

Please sign in to comment.