Merge pull request #539 from efiop/master

travis: try using python reporter for codeclimate
This commit is contained in:
Ruslan Kuprieiev
2018-03-10 23:46:36 +02:00
committed by GitHub
4 changed files with 8 additions and 31 deletions
-4
View File
@@ -37,12 +37,8 @@ before_install:
- bash ./scripts/ci/before_install.sh
install:
- bash ./scripts/ci/install.sh
before_script:
- bash ./scripts/ci/before_script.sh
script:
- bash ./scripts/ci/script.sh
after_script:
- bash ./scripts/ci/after_script.sh
deploy:
condition: "[[ $(python -c 'import sys; print(sys.version_info[0])') == '2' ]]"
provider: releases
-13
View File
@@ -1,13 +0,0 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" && \
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
"$TRAVIS_PULL_REQUEST" == "false" && \
"$TRAVIS_BRANCH" == "master" && \
"$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
coverage xml
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" && \
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
"$TRAVIS_PULL_REQUEST" == "false" && \
"$TRAVIS_BRANCH" == "master" && \
"$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
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
fi
+8
View File
@@ -5,6 +5,14 @@ set -e
./unittests.sh
if [[ "$TRAVIS_OS_NAME" == "linux" && \
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
"$TRAVIS_PULL_REQUEST" == "false" && \
"$TRAVIS_BRANCH" == "master" && \
"$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then
codeclimate-test-reporter --token $CC_TEST_REPORTER_ID
fi
if [[ ! -z "$TRAVIS_TAG" ]]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
./scripts/build_macos.sh