2015-12-08 18:26:39 +01:00
|
|
|
sudo: false
|
2015-04-13 18:38:00 +02:00
|
|
|
language: c
|
|
|
|
|
os:
|
|
|
|
|
- linux
|
2015-12-08 18:26:39 +01:00
|
|
|
|
|
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- python-pip
|
|
|
|
|
- texinfo
|
|
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
|
- clang
|
|
|
|
|
- gcc
|
|
|
|
|
|
2015-04-13 18:38:00 +02:00
|
|
|
before_install:
|
2015-04-19 15:32:58 +02:00
|
|
|
# runtime dependency
|
2015-04-13 19:18:36 +02:00
|
|
|
- git clone https://github.com/jedisct1/libsodium
|
2015-04-13 19:07:11 +02:00
|
|
|
- cd libsodium
|
|
|
|
|
- ./autogen.sh
|
2015-12-08 18:26:39 +01:00
|
|
|
- ./configure --prefix=$HOME/usr
|
2015-04-13 19:37:36 +02:00
|
|
|
- make
|
2015-12-08 18:26:39 +01:00
|
|
|
- make install
|
2015-04-13 19:52:54 +02:00
|
|
|
- cd ..
|
2015-04-19 15:32:58 +02:00
|
|
|
#
|
|
|
|
|
# for debugging - just in case, uncomment this and the next if needed
|
|
|
|
|
#- wget http://valgrind.org/downloads/valgrind-3.10.1.tar.bz2
|
|
|
|
|
#- tar xvjf valgrind-3.10.1.tar.bz2
|
|
|
|
|
#- cd valgrind-3.10.1
|
|
|
|
|
#- ./configure --prefix=/usr
|
|
|
|
|
#- make
|
|
|
|
|
#- sudo make install
|
|
|
|
|
#- cd ..
|
|
|
|
|
#
|
|
|
|
|
# valgrind runtime dependency
|
|
|
|
|
#- sudo apt-get update
|
|
|
|
|
#- sudo apt-get install libc6-dbg
|
|
|
|
|
#
|
|
|
|
|
# python bindings runtime dependencies
|
2015-12-08 18:26:39 +01:00
|
|
|
#- git clone https://github.com/atgreen/libffi
|
|
|
|
|
#- cd libffi
|
|
|
|
|
#- ./autogen.sh
|
|
|
|
|
#- ./configure --prefix=/usr
|
|
|
|
|
#- make
|
|
|
|
|
#- sudo make install
|
|
|
|
|
#- cd ..
|
|
|
|
|
#- sudo pip install cffi
|
2015-04-19 15:32:58 +02:00
|
|
|
#
|
|
|
|
|
# finally prepare autoconf stuff
|
2015-04-13 20:09:45 +02:00
|
|
|
- ./autogen.sh
|
2015-12-08 18:26:39 +01:00
|
|
|
|
2015-04-13 19:07:11 +02:00
|
|
|
script:
|
2015-12-08 18:26:39 +01:00
|
|
|
#- ./configure --enable-python-binding
|
2015-12-08 18:40:14 +01:00
|
|
|
- LD_LIBRARY_PATH=$HOME/usr/lib ./configure --with-libsodium=$HOME/usr
|
2015-04-13 20:09:45 +02:00
|
|
|
- make
|
2015-04-14 17:45:00 +02:00
|
|
|
- make check
|
|
|
|
|
- make test
|
2015-04-19 18:36:56 +02:00
|
|
|
#
|
|
|
|
|
# upload last fuzzy testfiles in case one of them failed
|
|
|
|
|
- cd tests
|
|
|
|
|
- cat testfuzzP.pub | openssl base64 | curl -F 'sprunge=<-' http://sprunge.us
|
|
|
|
|
- cat testfuzzS.sec | openssl base64 | curl -F 'sprunge=<-' http://sprunge.us
|