Skip to content

Commit 215a31f

Browse files
committed
Adds Travis CI config and corresponding Dockerfile
1 parent 2d1e1cc commit 215a31f

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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
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

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)