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 |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index c0fc02e..317903d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1 +1,52 @@
-language: cpp
\ No newline at end of file
+language: cpp
+
+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 ..
+
+jobs:
+  include:
+      - stage: compile
+        script: 
+          - make
+            make install
+      - stage: test
+        script: make test

--
Gitblit v1.9.1