migrate to container, 1 try

This commit is contained in:
git@daemon.de
2015-12-08 18:26:39 +01:00
parent 88b49e611b
commit fcca6f5a08

View File

@@ -1,35 +1,41 @@
sudo: false
language: c language: c
os: os:
- linux - linux
addons:
apt:
packages:
- python-pip
- texinfo
compiler:
- clang
- gcc
before_install: before_install:
# runtime dependency # runtime dependency
- git clone https://github.com/jedisct1/libsodium - git clone https://github.com/jedisct1/libsodium
- cd libsodium - cd libsodium
- ./autogen.sh - ./autogen.sh
- ./configure --prefix=/usr - ./configure --prefix=$HOME/usr
- make - make
- sudo make install - make install
- cd .. - cd ..
# #
# unittest dependencies, perl modules # unittest dependencies, perl modules
- wget http://search.cpan.org/CPAN/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz - wget http://search.cpan.org/CPAN/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz
- tar xvzf Config-General-2.56.tar.gz - tar xvzf Config-General-2.56.tar.gz
- cd Config-General-2.56 - mkdir -p tests/lib/Config/General
- perl Makefile.PL && make - cp Config-General-2.56/General.pm tests/lib/Config/
- sudo make install - cp Config-General-2.56/General/*.pm tests/lib/Config/General/
- cd ..
- wget http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-1.23.tar.gz - wget http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-1.23.tar.gz
- tar xvzf Tie-IxHash-1.23.tar.gz - tar xvzf Tie-IxHash-1.23.tar.gz
- cd Tie-IxHash-1.23 - mkdir -p tests/lib/Tie
- perl Makefile.PL && make - cp Tie-IxHash-1.23/Tie/IxHash.pm tests/lib/Tie/
- sudo make install
- cd ..
- wget http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-1.14.tar.gz - wget http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-1.14.tar.gz
- tar xvfz YAML-1.14.tar.gz - tar xvfz YAML-1.14.tar.gz
- cd YAML-1.14 - cp -r YAML-1.14/lib/* tests/lib/
- perl Makefile.PL && make
- sudo make install
- cd ..
# #
# for debugging - just in case, uncomment this and the next if needed # for debugging - just in case, uncomment this and the next if needed
#- wget http://valgrind.org/downloads/valgrind-3.10.1.tar.bz2 #- wget http://valgrind.org/downloads/valgrind-3.10.1.tar.bz2
@@ -45,24 +51,21 @@ before_install:
#- sudo apt-get install libc6-dbg #- sudo apt-get install libc6-dbg
# #
# python bindings runtime dependencies # python bindings runtime dependencies
- sudo apt-get update -qq #- git clone https://github.com/atgreen/libffi
- sudo apt-get install python-pip texinfo #- cd libffi
- git clone https://github.com/atgreen/libffi #- ./autogen.sh
- cd libffi #- ./configure --prefix=/usr
- ./autogen.sh #- make
- ./configure --prefix=/usr #- sudo make install
- make #- cd ..
- sudo make install #- sudo pip install cffi
- cd ..
- sudo pip install cffi
# #
# finally prepare autoconf stuff # finally prepare autoconf stuff
- ./autogen.sh - ./autogen.sh
compiler:
- clang
- gcc
script: script:
- ./configure --enable-python-binding #- ./configure --enable-python-binding
- ./configure
- make - make
- make check - make check
- make test - make test