Skip to content

Commit

Permalink
Merge pull request #5 from DEploid-dev/circleci-project-setup
Browse files Browse the repository at this point in the history
Add .circleci/config.yml
  • Loading branch information
shajoezhu authored Nov 24, 2024
2 parents 371e48e + 3ff2cc1 commit 516b9d8
Showing 1 changed file with 120 additions and 0 deletions.
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"

0 comments on commit 516b9d8

Please sign in to comment.