From 2006e67303f31da2e5a359993e08d25c02751c5a Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 28 Dec 2019 16:38:26 +0100 Subject: build: add Travis CI configuration --- .travis.yml | 31 +++++++++++++++++++++++++++++++ README.rst | 7 +++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5091396 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +os: linux +language: python +python: "3.7" +dist: bionic + +addons: + apt: + sources: + - sourceline: "ppa:ubuntu-toolchain-r/test" + packages: ['g++-9'] + +compiler: + - gcc + +env: + - CXX=g++-9 + +cache: + directories: + - $HOME/.conan/data + +install: + - pip install conan + - conan user + +script: + - mkdir -p build + - cd build + - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON .. + - cmake --build . --target all + - ctest diff --git a/README.rst b/README.rst index 54364d0..b01ee4e 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ newtype The `newtype` library provides types and functions to facilitate the creation of strong type aliases. -|c++20| |license| |docs| |btc| +|c++20| |license| |docs| |travis| |btc| Usage ===== @@ -25,4 +25,7 @@ Please `Read the Docs `_ for an introduction to the lib .. |btc| image:: https://img.shields.io/badge/Support-BTC-yellow :alt: Support the project with Bitcoin - :target: bitcoin:14NhzUxmcXaXwLQQcj5UhDvSuxA6hmGkkg?label=Donation%20to%20%27fmorgner%2Fnew_type%27&message=Thanks%20for%20your%20work%20on%20%27fmorgner%2Fnewtype%27 \ No newline at end of file + :target: bitcoin:14NhzUxmcXaXwLQQcj5UhDvSuxA6hmGkkg?label=Donation%20to%20%27fmorgner%2Fnew_type%27&message=Thanks%20for%20your%20work%20on%20%27fmorgner%2Fnewtype%27 + +.. |travis| image:: https://travis-ci.org/fmorgner/newtype.svg?branch=master + :target: https://travis-ci.org/fmorgner/newtype \ No newline at end of file -- cgit v1.2.3