From 436a961934f7fbe83be9b2561006796940d3a552 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 3 Jan 2019 03:05:03 +0100 Subject: [PATCH] Revert "ci, add codecov (#741)" This reverts commit 0b84fc9b6b7b9719685ab3f174edb9f5599ccffa. --- .codecov.yml | 6 ------ .gitignore | 1 - .travis.yml | 3 +-- README.md | 1 - makefile | 5 ++--- src/dscanner/main.d | 14 -------------- 6 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 3f8128d..0000000 --- a/.codecov.yml +++ /dev/null @@ -1,6 +0,0 @@ -coverage: - precision: 2 - round: down - range: "70...98" -fixes: - - "temp/::" diff --git a/.gitignore b/.gitignore index daac88b..1232473 100755 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ # D Scanner binaries /bin -/temp # Static analysis reports dscanner-report.json diff --git a/.travis.yml b/.travis.yml index 108bd4f..3218230 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ sudo: false language: d d: - dmd +- ldc-beta - ldc os: - linux @@ -86,5 +87,3 @@ jobs: stages: - name: test if: type = pull_request or (type = push and branch = master) -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 07dd195..f43f75f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # D-Scanner [![CI status](https://travis-ci.org/dlang-community/D-Scanner.svg?branch=master)](https://travis-ci.org/dlang-community/D-Scanner/) -[![codecov](https://codecov.io/gh/dlang-community/D-Scanner/branch/master/graph/badge.svg)](https://codecov.io/gh/dlang-community/D-Scanner) [![Latest version](https://img.shields.io/dub/v/dscanner.svg)](http://code.dlang.org/packages/dscanner) [![License](https://img.shields.io/dub/l/dscanner.svg)](http://code.dlang.org/packages/dscanner) diff --git a/makefile b/makefile index 3f3d6eb..ae58c77 100644 --- a/makefile +++ b/makefile @@ -13,7 +13,6 @@ LIB_SRC := \ $(shell find libdparse/src/dparse/ -name "*.d")\ $(shell find libddoc/src -name "*.d") \ $(shell find stdx-allocator/source -name "*.d") -CI_COV := $(shell [[ ${CI} == "TRUE" ]] && echo -cov || echo "") PROJECT_SRC := $(shell find src/ -name "*.d") SRC := $(LIB_SRC) $(PROJECT_SRC) INCLUDE_PATHS = \ @@ -43,7 +42,7 @@ debug: githash ${DC} -w -g -Jbin -ofdsc ${VERSIONS} ${DEBUG_VERSIONS} ${INCLUDE_PATHS} ${SRC} dmdbuild: githash - ${DC} ${DMD_FLAGS} -ofbin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC} ${CI_COV} + ${DC} ${DMD_FLAGS} -ofbin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC} rm -f bin/dscanner.o gdcbuild: githash @@ -57,7 +56,7 @@ bin/dscanner-unittest-lib.a: ${LIB_SRC} ${DC} ${DMD_TEST_FLAGS} -c ${INCLUDE_PATHS} ${LIB_SRC} -of$@ test: bin/dscanner-unittest-lib.a githash - ${DC} ${DMD_TEST_FLAGS} -unittest ${INCLUDE_PATHS} bin/dscanner-unittest-lib.a ${PROJECT_SRC} ${CI_COV} -ofbin/dscanner-unittest + ${DC} ${DMD_TEST_FLAGS} -unittest ${INCLUDE_PATHS} bin/dscanner-unittest-lib.a ${PROJECT_SRC} -ofbin/dscanner-unittest ./bin/dscanner-unittest rm -f bin/dscanner-unittest diff --git a/src/dscanner/main.d b/src/dscanner/main.d index 77eb754..da3f8ad 100644 --- a/src/dscanner/main.d +++ b/src/dscanner/main.d @@ -37,20 +37,6 @@ import inifiled; import dsymbol.modulecache; -version(D_Coverage) -{ - shared static this() - { - import core.runtime: dmd_coverSetMerge, dmd_coverDestPath, dmd_coverSourcePath; - dmd_coverSetMerge(true); - auto rootDir = __FILE_FULL_PATH__.dirName.dirName.dirName; - auto destDir = rootDir ~ dirSeparator ~ "temp"; - mkdirRecurse(destDir); - dmd_coverDestPath(destDir); - dmd_coverSourcePath(rootDir); - } -} - version (unittest) void main() {