1sudo: false 2 3language: c 4 5os: 6 - linux 7 8compiler: 9 - clang 10 - gcc 11 - g++ 12 13install: 14 - ./autogen.sh 15 - env CC=tcc CFLAGS='-w' ./configure --prefix=/tmp --disable-dependency-tracking --disable-shared || cat config.log 16 - make -j $(nproc) && make check && make install 17 - env CC=tcc CPPFLAGS='-I/tmp/include' LDFLAGS='-L/tmp/lib' LD_LIBRARY_PATH='/tmp/lib' ./test/constcheck.sh 18 - make uninstall 19 - make distclean 20 21script: 22 - ./configure --disable-dependency-tracking 23 - if [ "$TRAVIS_OS_NAME" = 'linux' -a "$CC" = 'gcc' ]; then make -j $(nproc) CFLAGS='-g0' > /dev/null && cp src/libsodium/.libs/libsodium.so lib.so && make clean > /dev/null && make CFLAGS='-g0' CPPFLAGS='-DSODIUM_C99\(X\)=' > /dev/null && cp src/libsodium/.libs/libsodium.so lib-oldc.so && cmp lib.so lib-oldc.so && echo No binary changes && make clean > /dev/null ; fi 24 - make distcheck 25 - make distclean > /dev/null 26 - ./configure --disable-dependency-tracking --enable-minimal 27 - make check 28 - ( echo '#include <sodium.h>' ; echo 'int main(void) { return sodium_init(); }' ) > /tmp/main.c && gcc -Isrc/libsodium/include -Isrc/libsodium/include/sodium $(find src -name '*.c' -o -name '*.S') /tmp/main.c 29 30addons: 31 apt: 32 packages: 33 - tcc 34