mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added Makefile for Travis-CI
This commit is contained in:
parent
8483e9d4aa
commit
28a28b0b4e
2 changed files with 54 additions and 0 deletions
10
.travis.yml
Normal file
10
.travis.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
language: c
|
||||
|
||||
install:
|
||||
- make dependencies
|
||||
script:
|
||||
- make build
|
||||
- make test
|
||||
deploy:
|
||||
- make doc
|
||||
- make deploy
|
44
Makefile
Normal file
44
Makefile
Normal file
|
@ -0,0 +1,44 @@
|
|||
# This Makefile is mainy used by Travis-CI
|
||||
|
||||
PREFIX=$(PWD)/thirdparty
|
||||
|
||||
.PHONY: dependencies build deploy test doc clean libnl3 libconfig
|
||||
|
||||
clean:
|
||||
make -C server clean
|
||||
rm -rf thirdparty
|
||||
rm -rf documentation/{html,latex}
|
||||
doc:
|
||||
doxygen
|
||||
|
||||
dirs:
|
||||
mkdir -p $(PREFIX)/usr/
|
||||
|
||||
# Install dependencies
|
||||
dependencies: libconfig libnl3
|
||||
|
||||
# Install & compile libconfig dependency
|
||||
libconfig: dirs
|
||||
wget -O- http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz | tar -xzC $(PREFIX)
|
||||
cd $(PREFIX)/libconfig-1.5 && ./configure --prefix=$(PREFIX)/usr/ --disable-examples
|
||||
make -C $(PREFIX)/libconfig-1.5 install
|
||||
|
||||
# Install & compile libnl3 dependency
|
||||
libnl3: dirs
|
||||
wget -O- http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz | tar -xzC $(PREFIX)
|
||||
cd $(PREFIX)/libnl-3.2.25 && ./configure --prefix=$(PREFIX)/usr/ --disable-cli
|
||||
make -C $(PREFIX)/libnl-3.2.25 install
|
||||
|
||||
# Compile S2SS server
|
||||
build:
|
||||
make -C server CFLAGS=-I$(PREFIX)/usr/include/ LDFLAGS=-Wl,-L$(PREFIX)/usr/lib/
|
||||
|
||||
# Test S2SS server by running it for 3 secs
|
||||
test:
|
||||
LD_LIBRARY_PATH=$(PREFIX)/usr/lib/ \
|
||||
timeout --signal INT --preserve-status 3s \
|
||||
server/server server/etc/loopback.conf
|
||||
|
||||
# Deploy
|
||||
deploy:
|
||||
echo "Nothing to do here yet"
|
Loading…
Add table
Reference in a new issue