You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

11 years ago
8 years ago
8 years ago
8 years ago
11 years ago
  1. sudo: required
  2. language: c
  3. dist : trusty
  4. compiler: clang
  5. os:
  6. - linux
  7. - osx
  8. env:
  9. global:
  10. - LIBSODIUM_VER=1.0.12
  11. - MBEDTLS_VER=2.4.0
  12. before_install:
  13. - |
  14. if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  15. # All dependencies for macOS build. Some packages has been installed by travis so use reinstall.
  16. brew reinstall autoconf automake xmlto udns libev mbedtls libsodium asciidoc >> /dev/null 2>&1;
  17. else
  18. wget https://github.com/jedisct1/libsodium/releases/download/$LIBSODIUM_VER/libsodium-$LIBSODIUM_VER.tar.gz;
  19. tar xvf libsodium-$LIBSODIUM_VER.tar.gz;
  20. pushd libsodium-$LIBSODIUM_VER;
  21. ./configure --prefix=/usr && make;
  22. sudo make install;
  23. popd;
  24. wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz;
  25. tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz;
  26. pushd mbedtls-$MBEDTLS_VER;
  27. make SHARED=1;
  28. sudo make install;
  29. popd;
  30. # Load cached docker images
  31. if [[ -d $HOME/docker ]]; then
  32. ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load";
  33. fi
  34. fi
  35. addons:
  36. apt:
  37. sources:
  38. - george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
  39. packages:
  40. - libudns-dev
  41. - libev-dev
  42. - asciidoc
  43. - xmlto
  44. script:
  45. - ./autogen.sh
  46. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  47. ./configure --disable-documentation --with-mbedtls=/usr/local/opt/mbedtls --with-sodium=/usr/local/opt/libsodium;
  48. else
  49. ./configure;
  50. fi
  51. - make
  52. - cd build && cmake ../ && make
  53. branches:
  54. only:
  55. - master
  56. notifications:
  57. recipients:
  58. - max.c.lv@gmail.com
  59. email:
  60. on_success: change
  61. on_failure: always