appveyor.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. image:
  2. - Visual Studio 2017
  3. - Ubuntu1804
  4. - Visual Studio 2015
  5. platform:
  6. - x64
  7. - x86
  8. for:
  9. -
  10. matrix:
  11. only:
  12. - image: Visual Studio 2015
  13. only_commits:
  14. message: /increment build number/
  15. -
  16. matrix:
  17. only:
  18. - platform: x86
  19. only_commits:
  20. message: /increment build number/
  21. shallow_clone: true
  22. install:
  23. - cmd: for /r %%i in (*.bat) do unix2dos "%%i"
  24. - cmd: if "%PLATFORM%" == "x64" set FB_PROCESSOR_ARCHITECTURE=AMD64
  25. - cmd: if "%PLATFORM%" == "x64" set FB_OUTPUT_SUFFIX=x64
  26. - cmd: if "%PLATFORM%" == "x64" set FB_VS_ARCH=amd64
  27. - cmd: if "%PLATFORM%" == "x86" set FB_PROCESSOR_ARCHITECTURE=x86
  28. - cmd: if "%PLATFORM%" == "x86" set FB_OUTPUT_SUFFIX=win32
  29. - cmd: if "%PLATFORM%" == "x86" set FB_VS_ARCH=x86
  30. - cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=%FB_VS_ARCH%
  31. - cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %FB_VS_ARCH%
  32. - cmd: cd builds\win32
  33. - cmd: run_all.bat JUSTBUILD
  34. - cmd: set ARTIFACTS_PATH=output_%FB_OUTPUT_SUFFIX%
  35. - sh: export APT_PACKAGES="libtool-bin"
  36. - sh: if [ $PLATFORM = "x64" ]; then export APT_PACKAGES="$APT_PACKAGES libtommath1 libtommath-dev libicu-dev zlib1g-dev"; fi
  37. - sh: if [ $PLATFORM = "x86" ]; then export APT_PACKAGES="$APT_PACKAGES gcc-multilib g++-multilib libncurses5-dev:i386 libtommath-dev:i386 libicu-dev:i386 zlib1g-dev:i386"; fi
  38. - sh: if [ $PLATFORM = "x64" ]; then export CC="gcc" CXX="g++"; fi
  39. - sh: if [ $PLATFORM = "x86" ]; then export CC="gcc -m32" CXX="g++ -m32"; fi
  40. - sh: if [ $PLATFORM = "x86" ]; then export BUILD_FLAG=--build=i386-pc-linux-gnu; fi
  41. - sh: sudo apt-get -y update
  42. - sh: sudo apt-get -y install $APT_PACKAGES
  43. - sh: find . -type f -iname "*.sh" -exec chmod +x {} \;
  44. - sh: ./autogen.sh --enable-binreloc --with-builtin-tomcrypt --prefix=/opt/firebird $BUILD_FLAG
  45. - sh: make -j4
  46. - sh: make dist
  47. - sh: (mkdir output; tar xzvf gen/Firebird-[0-9]*.tar.gz -C output)
  48. - sh: (cd output/Firebird-[0-9]*; sudo ./install.sh -silent)
  49. - sh: export ARTIFACTS_PATH=`find gen/Firebird-[0-9]*.tar.gz`
  50. artifacts:
  51. - path: $(ARTIFACTS_PATH)
  52. name: output
  53. type: zip
  54. build: off
  55. test: off
  56. deploy: off