.travis.yml 1003 B

1234567891011121314151617181920212223242526272829303132
  1. language: cpp
  2. sudo: required
  3. dist: trusty
  4. os:
  5. - linux
  6. - osx
  7. compiler:
  8. - gcc
  9. - clang
  10. before_install:
  11. - if [ $TRAVIS_OS_NAME == linux ]; then
  12. sudo apt-get update -qq;
  13. sudo apt-get install -y --no-install-recommends libxrandr-dev libxi-dev libxxf86vm-dev libsdl2-dev;
  14. wget https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip;
  15. unzip glfw-3.2.1.zip && cd glfw-3.2.1;
  16. cmake -DBUILD_SHARED_LIBS=true -DGLFW_BUILD_EXAMPLES=false -DGLFW_BUILD_TESTS=false -DGLFW_BUILD_DOCS=false .;
  17. sudo make -j $CPU_NUM install && cd ..;
  18. fi
  19. - if [ $TRAVIS_OS_NAME == osx ]; then
  20. brew update;
  21. brew install glfw3;
  22. brew install sdl2;
  23. fi
  24. script:
  25. - make -C examples/example_glfw_opengl2
  26. - make -C examples/example_glfw_opengl3
  27. - make -C examples/example_sdl_opengl3
  28. - if [ $TRAVIS_OS_NAME == osx ]; then xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos;