Skip to content

Commit 45af427

Browse files
Merge pull request #98 from holgerteichgraeber/testing
Testing + code coverage - Addresses #91 - connection to codecov.io : https://codecov.io/gh/holgerteichgraeber/ClustForOpt.jl . - cleanup of some unused functions - replaced `@error` by `error(msg)`. The former is used for logging, whereas the later throws an Exception. We want the latter.
2 parents e13cb90 + c53c37c commit 45af427

34 files changed

+606
-1455
lines changed

.codecov.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
parsers:
16+
gcov:
17+
branch_detection:
18+
conditional: yes
19+
loop: yes
20+
method: no
21+
macro: no
22+
23+
comment:
24+
layout: "header, diff"
25+
behavior: default
26+
require_changes: no
27+
28+
ignore:
29+
- "src/clustering/shape_based/*"

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ julia:
99
notifications:
1010
email: false
1111

12-
after_success:
13-
1412
jobs:
1513
include:
1614
- stage: "Testing"
1715
julia: 1.0
1816
os: linux
1917
script:
2018
- julia --project=test/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
21-
- julia --project=test/ test/clustering.jl
22-
- julia --project=test/ test/test_workflow_introduction.jl
23-
after_success:
19+
- julia --project=test/ --code-coverage test/runtests.jl
2420
- stage: "Documentation"
2521
julia: 1.0
2622
os: linux
2723
script:
2824
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2925
- julia --project=docs/ docs/make.jl
30-
after_success:
31-
services: docker
26+
after_success: skip
27+
28+
after_success:
29+
- julia -e 'using Pkg; Pkg.add("Coverage")'
30+
- julia -e 'using Coverage; Codecov.submit(process_folder())'

Manifest.toml

Lines changed: 0 additions & 316 deletions
This file was deleted.

Project.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
1212
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
1313
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
1414
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
15-
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
1615
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
1716
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1817
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1918
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
2019

2120
[compat]
2221
julia = "^1.0"
22+
23+
[extras]
24+
Cbc = "9961bab8-2fa3-5c5a-9d89-47fab24efd76"
25+
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
26+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
27+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
28+
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
29+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
30+
31+
[targets]
32+
test = ["Pkg", "Test", "StatsBase", "Cbc", "Random", "JLD2"]

0 commit comments

Comments
 (0)