.travis.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. language: c
  2. before_install:
  3. - sudo apt-get -qq update
  4. - sudo apt-get install -y git debhelper dpkg-dev build-essential fakeroot flawfinder wget unzip realpath
  5. - sudo apt-get install -y libpcap-dev libselinux1-dev
  6. - sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang
  7. - sudo apt-get install -y autoconf automake dh-autoreconf
  8. after_failure:
  9. - cat config.log
  10. script:
  11. - mkdir -p ./deploy
  12. # default gcc build
  13. - autoreconf -fi
  14. - ./configure --prefix=/
  15. - make install CFLAGS='-Werror' DESTDIR="$(realpath ./deploy)" V=s
  16. - make clean
  17. # debian build
  18. - dpkg-buildpackage -b -us -uc
  19. - make clean
  20. # mingw-w64 build
  21. - CC=i686-w64-mingw32-gcc ./configure --prefix=/ --host=i686-w64-mingw32
  22. - make install CFLAGS='-Werror' DESTDIR="$(realpath ./deploy)" V=s
  23. - make clean
  24. # clang build
  25. - CC=clang ./configure --prefix=/
  26. - make install CFLAGS='-Werror -Wno-error=for-loop-analysis' DESTDIR="$(realpath ./deploy)" V=s
  27. - make clean
  28. # android build
  29. - mkdir -p vendor && cd vendor
  30. - test -r 'android-ndk-r19-linux-x86_64.zip' || wget --progress=dot:mega 'https://dl.google.com/android/repository/android-ndk-r19-linux-x86_64.zip'
  31. - test -d 'android-ndk-r19' || unzip -q 'android-ndk-r19-linux-x86_64.zip'
  32. - cd ..
  33. - CC=aarch64-linux-android28-clang PATH="${PATH}:$(realpath ./vendor/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin)" ./configure --host=aarch64-linux-android
  34. - PATH="${PATH}:$(realpath ./vendor/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin)" make install CFLAGS='-Werror -Wno-error=for-loop-analysis' DESTDIR="$(realpath ./deploy)" V=s
  35. # archlinux build
  36. # see: https://wiki.archlinux.org/index.php/Install_from_existing_Linux#Method_A:_Using_the_bootstrap_image_(recommended)
  37. #- wget --progress=dot:mega 'https://ftp.fau.de/archlinux/iso/2019.02.01/archlinux-bootstrap-2019.02.01-x86_64.tar.gz'
  38. #- sudo tar -xzf 'archlinux-bootstrap-2019.02.01-x86_64.tar.gz'
  39. #- sudo mount --bind "$(realpath ./root.x86_64)" "$(realpath ./root.x86_64)"
  40. #- cd "$(realpath ./root.x86_64)"
  41. #- git clone ..
  42. #- sudo cp '/etc/resolv.conf' etc
  43. #- sudo mount -t proc /proc proc
  44. #- sudo mount --make-rslave --rbind /sys sys
  45. #- sudo mount --make-rslave --rbind /dev dev
  46. #- sudo mount --make-rslave --rbind /run run
  47. #- sudo chroot . /bin/bash -c 'pacman -Sy archlinux-keyring --noconfirm'
  48. #- sudo chroot . /bin/bash -c 'pacman -Syu --noconfirm'
  49. #- sudo chroot . /bin/bash -c 'pacman -S --noconfirm binutils gcc base-devel git'
  50. #- sudo chroot . /bin/bash -c 'cd ptunnel-ng && makepkg'
  51. #- sudo chroot . /bin/bash -c 'cd ptunnel-ng && makepkg -p PKGBUILD.dev --skipchecksums'
  52. #- cd ..
  53. env:
  54. global:
  55. - secure: DqyBATbSy6uoCpJ9MsedJID1SBWnHM0FMXJS2E4FbMwEaoOLWw/7EiLZUrIxcuAGyaztd4xuve3den07xt7uOL6RBebVjh8ZbNxR92ndxsDcsvLFEUTeTvDOsu7vYmocLw95x5GFPWygOP1PGe/QpQKHo6MMT5Px0if7LFiFi8bGj5lpuiL5C7l2IsWhmaLB3oIMK7z/JXPQSkXjYjzahS7dDRr7LnkQpEtywmSHGn5xD3QCZIUysDQV3lsy6zWUC6YLXMeu7JLgh/T6BAO2Zqj4uNlIrhGkh9OOx6OopjvklP0GFqJkSN1i2iPEDuuLx0+eLMUiGREAmWldt7aKwyCVH7r8zcTRSMk2E0jJ4wdd5hHbMUzG3LohmRfxlbcwL0MiOBeCR2MTQBsPXmjXJs4Qf82blQrp2Hxm0sE3KyswDEDQUBTKbRzVFPjYLTRASzIZrDG7j+CjkLRSESyXU3u8IIiE0wr75lhNWL58ZrVzjyZIxCgo8oOeK/yF+6F3hyCSnh/bFkCjvcHMsYInyVZCLgYkYeLHujbvgbiIPOAk50ikTz8AvKMCgK313O6/LjNaJu2GgezN0j2/mKGyvucBJM2QTys7AYp8QfUWy5bOaKcyHq0guu8/lrB8gp2bvIe5xL1HVrmBBvOKzuvwylLCO71Mb4P0zTxeMFwQyVs=
  56. addons:
  57. coverity_scan:
  58. project:
  59. name: lnslbrty/ptunnel-ng
  60. notification_email: matzeton@googlemail.com
  61. build_command_prepend: autoreconf -i && ./configure
  62. build_command: make
  63. branch_pattern: coverity_scan