Skip to content

Commit 1671510

Browse files
authored
Merge pull request #1 from j-ulrich/feature/travisCI
Adds Travis CI
2 parents 2d1e1cc + 74e1eca commit 1671510

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.*
22
!.gitignore
33
!.appveyor.yml
4+
!.travis.yml
45
build/
56
.build/
67
_build/

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
sudo: required
2+
3+
services:
4+
- docker
5+
6+
before_script:
7+
- cd tests
8+
- docker build -t j-ulrich/http-status-codes -f Dockerfile ..
9+
10+
script:
11+
- >
12+
docker run j-ulrich/http-status-codes /bin/bash -c "
13+
g++ --version
14+
&& qmake --version
15+
&& cd tests
16+
&& mkdir _build
17+
&& cd _build
18+
&& cmake -DCMAKE_BUILD_TYPE=Release ..
19+
&& make all
20+
&& ctest --ouput-on-failure
21+
"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# HTTP Status Codes and Reason Phrases for C, C++ and Qt #
22

3-
[![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)
3+
[![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)
4+
[![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)
45

56

67
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
1314

1415
> - [Variants](#variants)
1516
> - [Example](#example)
16-
> - [Documentation](#examples)
17+
> - [Documentation](#documentation)
1718
> - [Status Codes Enum](#status-codes-enum)
1819
> - [Category/Class Tests](#categoryclass-tests)
1920
> - [Reason Phrases](#reason-phrases)

tests/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM julrich/docker_qt:latest
2+
3+
RUN mkdir /build
4+
COPY . /build
5+
WORKDIR /build

0 commit comments

Comments
 (0)