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.

50 lines
1.1 KiB

  1. language: c
  2. sudo: required
  3. dist: trusty
  4. git:
  5. depth: 3
  6. os:
  7. - osx
  8. - linux
  9. env:
  10. global:
  11. - VERBOSE=1
  12. matrix:
  13. - CFLAGS=-m64
  14. - CFLAGS=-m32
  15. before_script:
  16. - export CFLAGS="-std=gnu99 $CFLAGS"
  17. before_install:
  18. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  19. sudo apt-get install -y gcc-multilib
  20. libopenal-dev
  21. libxcursor-dev libxinerama-dev
  22. mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libglew-dev;
  23. wget 'https://github.com/a3f/GLFW-3.2.1-Debian-binary-package/releases/download/v3.2.1/GLFW-3.2.1-Linux.deb' && sudo dpkg -i GLFW-3.2.1-Linux.deb;
  24. fi
  25. - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install glfw; fi
  26. - "$CC --version"
  27. script:
  28. - mkdir build
  29. - cd build
  30. - cmake -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
  31. - make
  32. # - make package
  33. # - sudo make install
  34. #
  35. #deploy:
  36. # provider: releases
  37. # api_key:
  38. # secure: XXX
  39. # file_glob: true
  40. # file: raylib-*.tar.gz
  41. # skip_cleanup: true
  42. # on:
  43. # branch: master
  44. # tags: true