Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .circleci/config.yml #5

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
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
#- 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

"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


workflows:
version: 2
build:
jobs:
- "20.04"
# - "14.04"
# - "16.04"
Loading