new travis

This commit is contained in:
Olof hagsand 2020-07-07 22:27:47 +02:00
parent 8db65c59ea
commit 2f6458dd41
3 changed files with 15 additions and 4 deletions

View file

@ -5,8 +5,15 @@ branches:
language: c
os: linux
arch: amd64
jobs
- script: ./configure --with-restconf=fcgi && make && sudo make install
before_script:
- sudo apt-get install -y libfcgi-dev
- ./test/travis/before_script.sh
script:
- ./configure --with-restconf=evhtp && make && sudo make install
jobs
- script: ./configure --with-restconf=evhtp && make && sudo make install
before_script:
- sudo apt-get install -y libevent libevent-dev cmake
- ./test/travis/before_script.sh
- ./test/travis/build_evhtp.sh

View file

@ -129,7 +129,6 @@ RUN adduser www-data clicon
COPY --from=0 /clixon/build/ /usr/local/
COPY --from=0 /www-data /www-data
#COPY --from=0 /usr/local/lib/libevhtp.a /usr/local/lib/libevhtp.a # maybe not necessary since static
# Manually created
RUN chown www-data /www-data

5
test/travis/build_evhtp.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# Travis pre-config script.
# build libevhtp
git clone https://github.com/criticalstack/libevhtp.git
(cd libevhtp/build && cmake -DEVHTP_DISABLE_REGEX=ON -DEVHTP_DISABLE_EVTHR=ON .. && make && sudo make install)