mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
travis: try using python reporter for codeclimate
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user