diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100755 index 0000000..14fa40f --- /dev/null +++ b/.circleci/config.yml @@ -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"