Skip to content

Commit 3d7e76a

Browse files
author
Maxim Leontyev
committed
Run tests with travis
1 parent 8a6ddf6 commit 3d7e76a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ install:
1313

1414
script:
1515
- docker run phptdlib /root/phptdlib/php_examples/func.php
16+
- docker run phptdlib /root/phptdlib/build/tester

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ ENV HOME /root
66

77
COPY . $HOME/phptdlib
88

9+
RUN zypper -n install php7-embed && zypper clean
10+
911
RUN cd $HOME/phptdlib && \
1012
mkdir build && cd build && \
11-
cmake .. && \
13+
cmake -DTDLIB_BUILD_TESTS=ON .. && \
1214
make && \
1315
make install
1416

0 commit comments

Comments
 (0)