From 6723bce7033abc791b792bf9a09e07eb9f03c6af Mon Sep 17 00:00:00 2001 From: Mike Tung Date: Thu, 8 Mar 2018 22:08:06 -0500 Subject: [PATCH 1/2] updated travis build to get coverage reporters working --- .travis.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd37fce..c14b390 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,49 +1,35 @@ env: global: + - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) - CC_TEST_REPORTER_ID=5fcffa3ecf8aa57eefeb35fceff9cd300db4af96a4287dc29e1b1a12ad46eb29 -# These are the versions of our backend to be supported language: python python: - "3.3" - "3.4" - "3.5" - "3.6" - -# install dependencies, for python3.4 setuptools needs to be upgraded first install: - "pip install -U setuptools" - "pip install -r requirements.txt" - "pip install coveralls" - -# we use mongodb as our database services: - mongodb - before_install: - openssl aes-256-cbc -K $encrypted_fedd13c2de32_key -iv $encrypted_fedd13c2de32_iv -in google_secrets.json.enc -out google_secrets.json -d - -# Seed the mongodb with some test data, and setup test coverage reporters before_script: - bash mock_data/db_init.sh - 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 - -# Run the test suite script: - nosetests --with-coverage --cover-package=coder_directory_api - after_success: - coveralls - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - -# notify if there is a change in build status notification: email: on_success: change on_failure: change - -# monitor only these branches branches: only: - master From b972f7c6a99b7b73c0873453a1d54ad8738ca4ef Mon Sep 17 00:00:00 2001 From: Mike Tung Date: Thu, 8 Mar 2018 22:11:37 -0500 Subject: [PATCH 2/2] updated travis to focus on python 3.6 as coverage build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c14b390..7e93528 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ env: global: - - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) + - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) - CC_TEST_REPORTER_ID=5fcffa3ecf8aa57eefeb35fceff9cd300db4af96a4287dc29e1b1a12ad46eb29 language: python python: