aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-07-11 18:23:54 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-07-11 19:32:44 +0200
commitd9b39752f54536b590eb23e3225b08bc73d3ed7a (patch)
tree5155a6503ca61cfc11574248e9d0ca68e12e860e /.travis.yml
parent05706e63b0a4daf83167e159402207fefd1ca65d (diff)
travis build yaml
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..aeb33b0
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,24 @@
+language: c
+sudo: required
+
+os:
+ - linux
+
+compiler:
+ - gcc
+
+before_install:
+ - sudo apt-get -qq update
+ - sudo apt-get install -y -qq coreutils make autoconf automake gcc pkg-config valgrind wget libssl-dev
+ - wget 'https://www.libssh.org/files/0.7/libssh-0.7.5.tar.xz' -O ./libssh-0.7.5.tar.xz
+ - tar -xvf ./libssh-0.7.5.tar.xz
+ - cd ./libssh-0.7.5 && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make && sudo make install && cd ../..
+
+after_failure:
+ - cat config.log
+
+script:
+ - ./autogen.sh
+ - CFLAGS="-DCAP_AUDIT_READ=0 -DCAP_AUDIT_WRITE=0" ./configure
+ - make V=s
+ - TERM=linux valgrind --error-exitcode=1 ./src/potd --test --redirect 127.0.0.1:2222:127.0.0.1:22222 --protocol 127.0.0.1:22222:127.0.0.1:33333 --jail 127.0.0.1:33333