25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.5 KiB

  1. language: c
  2. dist: trusty
  3. git:
  4. depth: 3
  5. # TODO we could use a 32 bit Docker container for running true 32-bit tests
  6. # services: - docker
  7. matrix:
  8. include:
  9. - os: linux
  10. env: ARCH=i386
  11. sudo: required
  12. - os: linux
  13. env: ARCH=amd64
  14. sudo: required
  15. - os: osx
  16. env: ARCH=universal
  17. before_script:
  18. before_install:
  19. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  20. sudo apt-get install -y gcc-multilib
  21. libasound2-dev:$ARCH
  22. libxcursor-dev:$ARCH libxinerama-dev:$ARCH mesa-common-dev:$ARCH
  23. libx11-dev:$ARCH libxrandr-dev:$ARCH libxi-dev:$ARCH
  24. libgl1-mesa-dev:$ARCH libglu1-mesa-dev:$ARCH;
  25. export RAYLIB_PACKAGE_SUFFIX="-Linux-$ARCH";
  26. if [ "$ARCH" == "i386" ]; then export CFLAGS="-m32"; fi;
  27. if [ "$ARCH" == "amd64" ]; then export CFLAGS="-m64"; fi;
  28. if [ "$GLFW" == "SYSTEM" ]; then
  29. wget 'http://ftp.de.debian.org/debian/pool/main/g/glfw3/libglfw3_3.2.1-1_amd64.deb';
  30. wget 'http://ftp.de.debian.org/debian/pool/main/g/glfw3/libglfw3-dev_3.2.1-1_amd64.deb';
  31. sudo dpkg -i libglfw3_3.2.1-1_amd64.deb libglfw3-dev_3.2.1-1_amd64.deb;
  32. fi;
  33. fi
  34. - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
  35. export RAYLIB_PACKAGE_SUFFIX="-macOS";
  36. if [ "$GLFW" == "SYSTEM" ]; then brew update; brew install glfw; fi;
  37. fi
  38. - "$CC --version"
  39. script:
  40. - mkdir build
  41. - cd build
  42. - cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DUSE_EXTERNAL_GLFW=IF_POSSIBLE ..
  43. - make VERBOSE=1
  44. - make package
  45. deploy:
  46. provider: releases
  47. api_key:
  48. secure: LvqUIAN/3dJul+Ra2iK3tSaNG5IwsNMmGIwVMy0DK5IBCxiQPBc9pWGiE30RTBPt6Z+N4BhMEE8DtUl+vnISlMoHWNIIhF2zwC66hs/F7zY7qEITMRSmfiLcqxQysknFOnJB06CATgXcFqlEo9j+t4abrG/f3qcb92J4O2uNz336Au2myTx93Q5MxbyA7KiUuEutFnb2dWiPCY4d+sGeXEfsiD2R7aj/8MaWOkoGdZVrTkI9juMgvpImkjQBArvqdjUMeT3MsRrwgOIq5v2GFV9dOl8k1WzPeT8B2JHh00ed/o1/wuFq/cLLOxtYo2+Pv3+xatOrlexoX0WkDm7C9/L1W5U4rLexU3CQ9mMBmHPnp6k/WXZ5QXEE4uUF0+LpN3XlIXzFpdZmZiVV8VLxg2WvyncMmivYiu7/MTkyfZxyKkzwl7sZZslzHA9kOGedGaN7b7/2B77OFHoQK8lKfdFml7jJnarh+89nenNZYMab0E8qkOJOyb2bYlDTa0/2nyxGiyymYgq6YHLNrDbhqB/1LzdgzjMliQ8ri5q9Ux2vjfcqOzhfAmcwFwnY/D6yXJWYi0DWpHZdpKl3du6dYDrypW91/yDWbwiJ/YhrE7ZunzrcB6GH/QkbuzWxdCth39rQAHih8DG01co/K3Gvi4yGjvIH5tFUpyEolMnpMiA=
  49. file_glob: true
  50. file: raylib-*.tar.gz
  51. skip_cleanup: true
  52. on:
  53. repo: raysan5/raylib
  54. branch: develop
  55. tags: true