-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from DEploid-dev/circleci-project-setup
Add .circleci/config.yml
- Loading branch information
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |