aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2019-12-28 16:38:26 +0100
committerFelix Morgner <felix.morgner@gmail.com>2019-12-28 16:38:26 +0100
commit2006e67303f31da2e5a359993e08d25c02751c5a (patch)
treec8ab112f69a26e258b706a7db42723e2e253e8ac
parent3cc01ed408dda6a0865d6c89958778a3d9deed08 (diff)
downloadnewtype-2006e67303f31da2e5a359993e08d25c02751c5a.tar.xz
newtype-2006e67303f31da2e5a359993e08d25c02751c5a.zip
build: add Travis CI configuration
-rw-r--r--.travis.yml31
-rw-r--r--README.rst7
2 files changed, 36 insertions, 2 deletions
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 <https://newtype.rtfd.io>`_ 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