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.

64 lines
1.7 KiB

11 years ago
7 years ago
7 years ago
8 years ago
8 years ago
7 years ago
11 years ago
7 years ago
  1. sudo: true
  2. language: c
  3. compiler:
  4. - gcc
  5. - clang
  6. env:
  7. global:
  8. - LIBSODIUM_VER=1.0.11
  9. - MBEDTLS_VER=2.4.0
  10. before_install:
  11. - wget https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-$LIBSODIUM_VER.tar.gz
  12. - tar xvf libsodium-$LIBSODIUM_VER.tar.gz
  13. - pushd libsodium-$LIBSODIUM_VER
  14. - ./configure --prefix=/usr && make
  15. - sudo make install
  16. - popd
  17. - wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz
  18. - tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz
  19. - pushd mbedtls-$MBEDTLS_VER
  20. - make
  21. - sudo make install
  22. - popd
  23. # Load cached docker images
  24. - if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
  25. addons:
  26. apt:
  27. packages:
  28. - autoconf
  29. - autotools-dev
  30. - libudns-dev
  31. - libev-dev
  32. - asciidoc
  33. - xmlto
  34. script:
  35. - ./autogen.sh
  36. - ./configure && make
  37. # Test cmake using our builder
  38. - cd docker/build && docker build -f builder.Dockerfile -t builder . && cd -
  39. - docker run --rm -it -v $PWD:/src -w /src builder sh -c /src/docker/build/dockerbuild.sh
  40. branches:
  41. only:
  42. - master
  43. notifications:
  44. recipients:
  45. - max.c.lv@gmail.com
  46. email:
  47. on_success: change
  48. on_failure: always
  49. # Use cache to speedup next build
  50. services:
  51. - docker
  52. before_cache:
  53. # Save tagged docker images
  54. - >
  55. mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
  56. | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
  57. cache:
  58. bundler: true
  59. directories:
  60. - $HOME/docker