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.

63 lines
1.8 KiB

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