Skip to content

Commit f637f98

Browse files
authored
Merge pull request #377 from DEploid-dev/shajoezhu-patch-1
Update config.yml
2 parents 704d178 + f757ec9 commit f637f98

File tree

5 files changed

+85
-61
lines changed

5 files changed

+85
-61
lines changed

.circleci/config.yml

Lines changed: 55 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
version: 2.0
1+
version: 2.1
2+
orbs:
3+
coveralls: coveralls/coveralls@2.2.5
4+
25
jobs:
3-
"14.04":
6+
v1804:
47
docker:
5-
- image: circleci/buildpack-deps:14.04
8+
- image: cimg/base:2022.08-18.04
69
working_directory: /home/circleci/DEploid
710
steps:
811
- checkout
@@ -16,35 +19,35 @@ jobs:
1619
- run:
1720
name: Install dependencies and set path
1821
command: |
19-
sudo apt-get update
20-
curl -fsSL https://git.io/vHGMF | bash
21-
sudo apt-get install libcppunit-dev
22-
sudo apt-get install valgrind
22+
sudo apt-get update
23+
curl -fsSL https://git.io/vHGMF | bash
24+
sudo apt-get install libcppunit-dev
25+
sudo apt-get install valgrind
2326
- run:
24-
name: Getting ready
25-
command: |
27+
name: Getting ready
28+
command: |
2629
g++ --version
2730
./bootstrap
2831
- run:
29-
name: Compile
30-
command: |
32+
name: Compile
33+
command: |
3134
make
3235
sudo make install
3336
make check
3437
- run:
35-
name: Run tests
36-
command: |
38+
name: Run tests
39+
command: |
3740
./tests/test_binary.sh
3841
./tests/testPOS.sh
3942
./tests/test_binaryVcfVsTxt.sh
4043
./tests/test-against-previous-version.sh
4144
./tests/test_binaryReproducible.sh
4245
#- valgrind --leak-check=full -v --show-leak-kinds=all ./unit_tests
43-
#- coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --gcov-options '\-lp'
46+
#- coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --gcov-options '\-lp'
4447

45-
"16.04":
48+
v2004:
4649
docker:
47-
- image: circleci/buildpack-deps:16.04
50+
- image: cimg/base:2022.08 # stable-20.04
4851
working_directory: /home/circleci/DEploid
4952
steps:
5053
- checkout
@@ -58,33 +61,33 @@ jobs:
5861
- run:
5962
name: Install dependencies and set path
6063
command: |
61-
sudo apt-get update
62-
curl -fsSL https://git.io/vHGMF | bash
63-
sudo apt-get install libcppunit-dev
64-
sudo apt-get install valgrind
64+
sudo apt-get update
65+
curl -fsSL https://git.io/vHGMF | bash
66+
sudo apt-get install libcppunit-dev
67+
sudo apt-get install valgrind
6568
- run:
66-
name: Getting ready
67-
command: |
69+
name: Getting ready
70+
command: |
6871
g++ --version
6972
./bootstrap
7073
- run:
71-
name: Compile
72-
command: |
74+
name: Compile
75+
command: |
7376
make
7477
sudo make install
7578
make check
7679
- run:
77-
name: Run tests
78-
command: |
80+
name: Run tests
81+
command: |
7982
./tests/test_binary.sh
8083
./tests/testPOS.sh
8184
./tests/test_binaryVcfVsTxt.sh
8285
./tests/test-against-previous-version.sh
8386
./tests/test_binaryReproducible.sh
8487
85-
"20.04":
88+
v2204:
8689
docker:
87-
- image: circleci/buildpack-deps:20.04
90+
- image: cimg/base:2024.12
8891
working_directory: /home/circleci/DEploid
8992
steps:
9093
- checkout
@@ -98,35 +101,38 @@ jobs:
98101
- run:
99102
name: Install dependencies and set path
100103
command: |
101-
sudo apt-get update
102-
curl -fsSL https://git.io/vHGMF | bash
103-
sudo apt-get install libcppunit-dev
104-
sudo apt-get install valgrind
104+
sudo apt-get update
105+
curl -fsSL https://git.io/vHGMF | bash
106+
sudo apt-get install libcppunit-dev automake
107+
sudo apt-get install valgrind lcov
105108
- run:
106-
name: Getting ready
107-
command: |
109+
name: Getting ready
110+
command: |
108111
g++ --version
109112
./bootstrap
110113
- run:
111-
name: Compile
112-
command: |
114+
name: Compile
115+
command: |
113116
make
114117
sudo make install
115118
make check
116119
- run:
117-
name: Run tests
118-
command: |
119-
./tests/test_binary.sh
120-
./tests/testPOS.sh
121-
./tests/test_binaryVcfVsTxt.sh
122-
./tests/test-against-previous-version.sh
123-
./tests/test_binaryReproducible.sh
124-
120+
name: Run tests
121+
command: |
122+
# ./tests/test_binary.sh
123+
# ./tests/testPOS.sh
124+
# ./tests/test_binaryVcfVsTxt.sh
125+
# ./tests/test-against-previous-version.sh
126+
# ./tests/test_binaryReproducible.sh
127+
# valgrind --leak-check=full -v --show-leak-kinds=all ./unit_tests_1
128+
# coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --gcov-options '\-lp'
129+
./tests/test-coverage-coverall.sh
130+
- coveralls/upload
125131

126132
workflows:
127-
version: 2
128-
build:
133+
myworkflow:
129134
jobs:
130-
- "20.04"
131-
# - "14.04"
132-
# - "16.04"
135+
- v2204
136+
- v2004
137+
# - v1804 # this is too old, bash_complete not available
138+

Makefile.am

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bin_PROGRAMS = dEploid dEploid_dbg
1313
man1_MANS = docs/_build/man/dEploid.1
1414

1515
TESTS = unit_tests io_unit_tests
16-
check_PROGRAMS = unit_tests dEploid_dbg io_unit_tests current_unit_tests # dEploid_prof
16+
check_PROGRAMS = unit_tests_1 unit_tests_2 unit_tests dEploid_dbg io_unit_tests current_unit_tests # dEploid_prof
1717
PROG = DEPLOID
1818

1919
common_flags = -std=c++17 -Isrc/ -Isrc/codeCogs/ -Isrc/vcf/src/ -DDEPLOIDVERSION=\"${DEPLOIDVERSION}\" -DLASSOVERSION=\"${LASSOVERSION}\" -DCOMPILEDATE=\"${COMPILEDATE}\" -Wall -Wextra
@@ -57,19 +57,37 @@ dEploid_LDADD = $(common_LDADD)
5757
dEploid_dbg_LDADD = $(common_LDADD)
5858
dEploid_prof_LDADD = $(common_LDADD)
5959

60-
unit_tests_SOURCES = $(common_src) \
61-
tests/unittest/test_runner.cpp \
62-
tests/unittest/test_ibd.cpp \
63-
tests/unittest/test_updateSingleHap.cpp \
64-
tests/unittest/test_utilities.cpp \
60+
unit_tests_1_SOURCES_0 = tests/unittest/test_ibd.cpp \
6561
tests/unittest/test_panel.cpp \
66-
tests/unittest/test_mcmc.cpp \
62+
tests/unittest/test_utilities.cpp
63+
64+
unit_tests_2_SOURCES_0 = tests/unittest/test_mcmc.cpp \
65+
tests/unittest/test_updateSingleHap.cpp \
6766
tests/unittest/test_updatePairHap.cpp \
6867
tests/unittest/test_workflow.cpp
6968

69+
unit_tests_1_SOURCES = $(common_src) \
70+
$(unit_tests_1_SOURCES_0) \
71+
tests/unittest/test_runner.cpp
72+
73+
unit_tests_2_SOURCES = $(common_src) \
74+
$(unit_tests_2_SOURCES_0) \
75+
tests/unittest/test_runner.cpp
76+
77+
unit_tests_SOURCES = $(common_src) \
78+
$(unit_tests_1_SOURCES_0) \
79+
$(unit_tests_2_SOURCES_0) \
80+
tests/unittest/test_runner.cpp
81+
7082
unit_tests_CXXFLAGS = $(common_flags) -DNDEBUG -DUNITTEST -Wno-write-strings --coverage
7183
unit_tests_LDADD = -lcppunit -ldl $(common_LDADD)
7284

85+
unit_tests_1_CXXFLAGS = $(common_flags) -DNDEBUG -DUNITTEST -Wno-write-strings --coverage
86+
unit_tests_1_LDADD = -lcppunit -ldl $(common_LDADD)
87+
88+
unit_tests_2_CXXFLAGS = $(common_flags) -DNDEBUG -DUNITTEST -Wno-write-strings --coverage
89+
unit_tests_2_LDADD = -lcppunit -ldl $(common_LDADD)
90+
7391
io_unit_tests_SOURCES = $(common_src) \
7492
tests/unittest/test_runner.cpp \
7593
tests/unittest/test_dEploidIO.cpp

bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ echo " done."
2323

2424
aclocal
2525
autoconf
26-
automake -a
26+
automake -a --force-missing --add-missing
2727
./configure

src/vcf

tests/test-coverage-coverall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
make -mj
55

66
# Generate html report
7-
lcov --ignore-errors version --base-directory . --directory . --zerocounters -q
7+
lcov --base-directory . --directory . --zerocounters -q
88
make check -mj
9-
lcov --ignore-errors version --base-directory . --directory . -c -o coverage/lcov.info
9+
lcov --base-directory . --directory . -c -o coverage/lcov.info
1010
# --rc lcov_branch_coverage=1 option will turn on branch check
11-
lcov --ignore-errors version --remove coverage/lcov.info "/usr*" "src/codeCogs/*" "src/vcf/*" "src/lasso/*" "src/export/*" "src/gzstream/*" "tests/unittest/*" -o coverage/lcov.info # remove output for external libraries
11+
lcov --remove coverage/lcov.info "/usr*" "src/codeCogs/*" "src/vcf/*" "src/lasso/*" "src/export/*" "src/gzstream/*" "tests/unittest/*" -o coverage/lcov.info # remove output for external libraries

0 commit comments

Comments
 (0)