new travis
This commit is contained in:
parent
8db65c59ea
commit
2f6458dd41
3 changed files with 15 additions and 4 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -5,8 +5,15 @@ branches:
|
||||||
language: c
|
language: c
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
before_script:
|
jobs
|
||||||
|
- script: ./configure --with-restconf=fcgi && make && sudo make install
|
||||||
|
before_script:
|
||||||
- sudo apt-get install -y libfcgi-dev
|
- sudo apt-get install -y libfcgi-dev
|
||||||
- ./test/travis/before_script.sh
|
- ./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
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,6 @@ RUN adduser www-data clicon
|
||||||
|
|
||||||
COPY --from=0 /clixon/build/ /usr/local/
|
COPY --from=0 /clixon/build/ /usr/local/
|
||||||
COPY --from=0 /www-data /www-data
|
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
|
# Manually created
|
||||||
RUN chown www-data /www-data
|
RUN chown www-data /www-data
|
||||||
|
|
|
||||||
5
test/travis/build_evhtp.sh
Executable file
5
test/travis/build_evhtp.sh
Executable 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue