1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Fix Travis CI build (#47)

* try to fix travis build

* try to use bionic somehow

* try again to fix travis

* need libssh for travis too

* install newer libssh too

* be less verbose in travis script
This commit is contained in:
Steve Wills 2018-11-30 11:06:01 -05:00 committed by Nicolas Viennot
parent 8b294f3270
commit 8519292881
3 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,5 @@
language: c language: c
dist: xenial
matrix: matrix:
include: include:
- compiler: gcc - compiler: gcc
@ -6,5 +7,7 @@ matrix:
env: CFLAGS="-g -O2" env: CFLAGS="-g -O2"
before_install: before_install:
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get -y install debhelper autotools-dev dh-autoreconf file libncurses5-dev libevent-dev pkg-config libutempter-dev build-essential - sudo apt-get -y install debhelper autotools-dev dh-autoreconf file libncurses5-dev libevent-dev pkg-config libutempter-dev build-essential cmake
- ./install_msgpack_travis.sh
- ./install_libssh_travis.sh
script: (CFLAGS= ./autogen.sh) && ./configure --enable-debug && make script: (CFLAGS= ./autogen.sh) && ./configure --enable-debug && make

9
install_libssh_travis.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
wget 'https://www.libssh.org/files/0.8/libssh-0.8.5.tar.xz'
tar -xJf libssh-0.8.5.tar.xz
mkdir libssh-build
cd libssh-build
cmake ../libssh-0.8.5
make
sudo make install

8
install_msgpack_travis.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
wget 'https://github.com/msgpack/msgpack-c/archive/cpp-3.1.1.tar.gz'
tar -xzf cpp-3.1.1.tar.gz
cd msgpack-c-cpp-3.1.1
cmake .
make
sudo make install