From 215a31febde92cd8a72caafa6eec3c8b3d61bc2b Mon Sep 17 00:00:00 2001 From: Jochen Ulrich Date: Tue, 14 Nov 2017 22:51:07 +0100 Subject: [PATCH 1/3] Adds Travis CI config and corresponding Dockerfile --- .gitignore | 1 + .travis.yml | 20 ++++++++++++++++++++ tests/Dockerfile | 5 +++++ 3 files changed, 26 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/Dockerfile diff --git a/.gitignore b/.gitignore index 510b097..9d39091 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .* !.gitignore !.appveyor.yml +!.travis.yml build/ .build/ _build/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..875968d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +sudo: required + +services: + - docker + +before_script: + - cd tests + - docker build -t j-ulrich/http-status-codes -f Dockerfile .. + +script: + - > + docker run j-ulrich/http-status-codes /bin/bash + g++ --version + && qmake --version + && cd tests + && mkdir _build + && cd _build + && cmake -DCMAKE_BUILD_TYPE=Release .. + && make all + && ctest --ouput-on-failure \ No newline at end of file diff --git a/tests/Dockerfile b/tests/Dockerfile new file mode 100644 index 0000000..878dfba --- /dev/null +++ b/tests/Dockerfile @@ -0,0 +1,5 @@ +FROM julrich/docker_qt:latest + +RUN mkdir /build +COPY . /build +WORKDIR /build From bd68af6e63101893b84e85fc0e4857071f883ec1 Mon Sep 17 00:00:00 2001 From: Jochen Ulrich Date: Tue, 14 Nov 2017 22:57:17 +0100 Subject: [PATCH 2/3] Fixes syntax error --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 875968d..78c79de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_script: script: - > - docker run j-ulrich/http-status-codes /bin/bash + docker run j-ulrich/http-status-codes /bin/bash -c " g++ --version && qmake --version && cd tests @@ -17,4 +17,5 @@ script: && cd _build && cmake -DCMAKE_BUILD_TYPE=Release .. && make all - && ctest --ouput-on-failure \ No newline at end of file + && ctest --ouput-on-failure + " \ No newline at end of file From 74e1ecad4cef0708df20013bfad3ae6f70ac4daa Mon Sep 17 00:00:00 2001 From: Jochen Ulrich Date: Tue, 14 Nov 2017 23:03:36 +0100 Subject: [PATCH 3/3] Adds Travis CI build status badge --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7127c84..ccf2ad7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # HTTP Status Codes and Reason Phrases for C, C++ and Qt # -[![Build status](https://ci.appveyor.com/api/projects/status/ijp196mjo0vsover/branch/master?svg=true)](https://ci.appveyor.com/project/j-ulrich/http-status-codes-cpp/branch/master) +[![Linux build status](https://travis-ci.org/j-ulrich/http-status-codes-cpp.svg?branch=master)](https://travis-ci.org/j-ulrich/http-status-codes-cpp) +[![Windows build status](https://ci.appveyor.com/api/projects/status/ijp196mjo0vsover/branch/master?svg=true)](https://ci.appveyor.com/project/j-ulrich/http-status-codes-cpp/branch/master) This repository provides the HTTP status codes and reason phrases in different variants for C/C++. @@ -13,7 +14,7 @@ Data has been taken from [for-GET/know-your-http-well](https://github.com/for-GE > - [Variants](#variants) > - [Example](#example) -> - [Documentation](#examples) +> - [Documentation](#documentation) > - [Status Codes Enum](#status-codes-enum) > - [Category/Class Tests](#categoryclass-tests) > - [Reason Phrases](#reason-phrases)