.travis.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Part of `travis-lazarus` (https://github.com/nielsAD/travis-lazarus)
  2. # License: MIT
  3. language: generic
  4. sudo: required
  5. dist: trusty
  6. os:
  7. - linux
  8. - osx
  9. env:
  10. global:
  11. - WINEPREFIX=~/.winelaz
  12. - DISPLAY=:99.0
  13. matrix:
  14. # - LAZ_PKG=true # Use the latest version from the default package manager
  15. - LAZ_VER=1.6 # Use specific (binary) release
  16. - LAZ_VER=1.8.0
  17. - LAZ_VER=1.8.4
  18. # - LAZ_VER=2.0RC1
  19. matrix:
  20. include:
  21. - os: linux
  22. env: LAZ_VER=1.6 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
  23. - os: linux
  24. env: LAZ_VER=1.8.0 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
  25. - os: linux
  26. env: LAZ_VER=1.8.4 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
  27. # - os: linux
  28. # env: LAZ_VER=2.0RC1 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
  29. - os: linux
  30. env: LAZ_VER=1.6 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
  31. - os: linux
  32. env: LAZ_VER=1.8.0 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
  33. - os: linux
  34. env: LAZ_VER=1.8.4 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
  35. # - os: linux
  36. # env: LAZ_VER=2.0RC1 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
  37. # - os: linux
  38. # env: LAZ_VER=1.6 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
  39. # - os: linux
  40. # env: LAZ_VER=1.8.0 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
  41. # - os: linux
  42. # env: LAZ_VER=1.8.4 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
  43. # - os: linux
  44. # env: LAZ_VER=2.0RC1 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
  45. before_install:
  46. # Start virtual display server
  47. - Xvfb $DISPLAY &
  48. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  49. sudo apt-get update;
  50. sudo apt-get install binutils-2.26;
  51. sudo ln -sf /usr/lib/binutils-2.26/bin/* /usr/bin/;
  52. sudo ln -sf /usr/lib/binutils-2.26/ldscripts/* /usr/lib/ldscripts/;
  53. fi
  54. - chmod +x .travis.install.py
  55. install:
  56. # Install prerequisites (fpc/lazarus/wine/qemu)
  57. - ./.travis.install.py
  58. script:
  59. - lazbuild --add-package-link ./QRCodeGenLib/src/Packages/FPC/QRCodeGenLib4PascalPackage.lpk # Add QRCodeGenLib4Pascal Package
  60. - lazbuild $LAZ_OPT ./QRCodeGenLib/src/Packages/FPC/QRCodeGenLib4PascalPackage.lpk # Build QRCodeGenLib4Pascal Package
  61. - lazbuild $LAZ_OPT ./QRCodeGenLib.Demo/FreePascal.Demo/QrCodeGeneratorDemo.lpi # Build QRCodeGenLib4Pascal Demo Project
  62. - travis_wait 120 $LAZ_ENV ./QRCodeGenLib.Demo/FreePascal.Demo/bin/QrCodeGeneratorDemo # Run QRCodeGenLib4Pascal Demo with timeout of 120 mins
  63. notifications:
  64. email:
  65. on_success: false
  66. on_failure: change