Skip to content

Commit

Permalink
Add .circleci/config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Nov 24, 2024
1 parent 46093c7 commit 308e67d
Showing 1 changed file with 132 additions and 0 deletions.
132 changes: 132 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 308e67d

Please sign in to comment.