From 7c878de85a77a4d9a51a4f5742d69657fd85bd53 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <gcontini@users.noreply.github.com> Date: 周日, 01 9月 2019 15:11:33 +0800 Subject: [PATCH] add travis ci tests --- .travis.yml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 49 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 729fdef..317903d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,52 @@ language: cpp -branches: - only: - - master +matrix: + include: + - os: linux + dist: bionic + addons: + apt: + packages: + - cmake + - valgrind + - libssl-dev + - zlib1g-dev + - libboost-test-dev + - libboost-filesystem-dev + - libboost-iostreams-dev + - libboost-program-options-dev + - libboost-system-dev + - libboost-thread-dev + - libboost-date-time-dev + - os: linux + dist: xenial + addons: + apt: + packages: + - cmake + - valgrind + - libssl-dev + - zlib1g-dev + - libboost-test-dev + - libboost-filesystem-dev + - libboost-iostreams-dev + - libboost-program-options-dev + - libboost-system-dev + - libboost-thread-dev + - libboost-date-time-dev +stages: + - compile + - test + +before_script: + - mkdir build + - cd build && cmake -DCMAKE_INSTALL_PREFIX=../../install .. -script: - - cd build/linux && cmake ../.. \ No newline at end of file +jobs: + include: + - stage: compile + script: + - make + make install + - stage: test + script: make test -- Gitblit v1.9.1