From 308e67d6366e567810aab5fb674b0dbb158108ef Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Sun, 24 Nov 2024 08:20:02 +0800 Subject: [PATCH 1/2] Add .circleci/config.yml --- .circleci/config.yml | 132 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..31685b5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,132 @@ +version: 2.0 +jobs: + "14.04": + docker: + - image: circleci/buildpack-deps:14.04 + working_directory: /home/circleci/DEploid + steps: + - checkout + - run: sudo chown -R circleci:circleci * + - restore_cache: + key: dEploid-{{ .Branch }} + - run: + name: Checkout submodules + command: | + git submodule update --init --recursive --remote + - run: + name: Install dependencies and set path + command: | + sudo apt-get update + curl -fsSL https://git.io/vHGMF | bash + sudo apt-get install libcppunit-dev + sudo apt-get install valgrind + - run: + name: Getting ready + command: | + g++ --version + ./bootstrap + - run: + name: Compile + command: | + make + sudo make install + make check + - run: + name: Run tests + command: | + ./tests/test_binary.sh + ./tests/testPOS.sh + ./tests/test_binaryVcfVsTxt.sh + ./tests/test-against-previous-version.sh + ./tests/test_binaryReproducible.sh + #- valgrind --leak-check=full -v --show-leak-kinds=all ./unit_tests + #- coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --gcov-options '\-lp' + + "16.04": + docker: + - image: circleci/buildpack-deps:16.04 + working_directory: /home/circleci/DEploid + steps: + - checkout + - run: sudo chown -R circleci:circleci * + - restore_cache: + key: dEploid-{{ .Branch }} + - run: + name: Checkout submodules + command: | + git submodule update --init --recursive --remote + - run: + name: Install dependencies and set path + command: | + sudo apt-get update + curl -fsSL https://git.io/vHGMF | bash + sudo apt-get install libcppunit-dev + sudo apt-get install valgrind + - run: + name: Getting ready + command: | + g++ --version + ./bootstrap + - run: + name: Compile + command: | + make + sudo make install + make check + - run: + name: Run tests + command: | + ./tests/test_binary.sh + ./tests/testPOS.sh + ./tests/test_binaryVcfVsTxt.sh + ./tests/test-against-previous-version.sh + ./tests/test_binaryReproducible.sh + + "20.04": + docker: + - image: circleci/buildpack-deps:20.04 + working_directory: /home/circleci/DEploid + steps: + - checkout + - run: sudo chown -R circleci:circleci * + - restore_cache: + key: dEploid-{{ .Branch }} + - run: + name: Checkout submodules + command: | + git submodule update --init --recursive --remote + - run: + name: Install dependencies and set path + command: | + sudo apt-get update + curl -fsSL https://git.io/vHGMF | bash + sudo apt-get install libcppunit-dev + sudo apt-get install valgrind + - run: + name: Getting ready + command: | + g++ --version + ./bootstrap + - run: + name: Compile + command: | + make + sudo make install + make check + - run: + name: Run tests + command: | + ./tests/test_binary.sh + ./tests/testPOS.sh + ./tests/test_binaryVcfVsTxt.sh + ./tests/test-against-previous-version.sh + ./tests/test_binaryReproducible.sh + + +workflows: + version: 2 + build: + jobs: + - "20.04" + # - "14.04" + # - "16.04" From 3ff2cc1e1a862a04839baf6dea39acdc3a761d22 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Sun, 24 Nov 2024 08:45:52 +0800 Subject: [PATCH 2/2] update --- .circleci/config.yml | 12 ------------ 1 file changed, 12 deletions(-) mode change 100644 => 100755 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml old mode 100644 new mode 100755 index 31685b5..14fa40f --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,10 +35,6 @@ jobs: name: Run tests command: | ./tests/test_binary.sh - ./tests/testPOS.sh - ./tests/test_binaryVcfVsTxt.sh - ./tests/test-against-previous-version.sh - ./tests/test_binaryReproducible.sh #- valgrind --leak-check=full -v --show-leak-kinds=all ./unit_tests #- coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --gcov-options '\-lp' @@ -77,10 +73,6 @@ jobs: name: Run tests command: | ./tests/test_binary.sh - ./tests/testPOS.sh - ./tests/test_binaryVcfVsTxt.sh - ./tests/test-against-previous-version.sh - ./tests/test_binaryReproducible.sh "20.04": docker: @@ -117,10 +109,6 @@ jobs: name: Run tests command: | ./tests/test_binary.sh - ./tests/testPOS.sh - ./tests/test_binaryVcfVsTxt.sh - ./tests/test-against-previous-version.sh - ./tests/test_binaryReproducible.sh workflows: