aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2017-10-12 11:29:09 +0200
committerGitHub <noreply@github.com>2017-10-12 11:29:09 +0200
commitdc6e559bf6145437c96041df92eb68563fd9482b (patch)
treea9a2065b6162d7552749dbd77acd34682a9b911c
parente129d52897412b674e7ba48325a42942e9c604e4 (diff)
parentf4a2d1ef292a637446cfcfa46d4c561fd0ac1376 (diff)
downloadraylib-dc6e559bf6145437c96041df92eb68563fd9482b.tar.gz
raylib-dc6e559bf6145437c96041df92eb68563fd9482b.zip
Merge pull request #365 from a3f/develop
Add Travis CI integration
-rw-r--r--.travis.yml50
-rw-r--r--README.md2
2 files changed, 52 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..703206e2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,50 @@
+language: c
+sudo: required
+dist: trusty
+
+git:
+ depth: 3
+
+os:
+ - osx
+ - linux
+
+env:
+ global:
+ - VERBOSE=1
+ matrix:
+ - CFLAGS=-m64
+ - CFLAGS=-m32
+
+before_script:
+ - export CFLAGS="-std=gnu99 $CFLAGS"
+
+before_install:
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
+ sudo apt-get install -y gcc-multilib
+ libopenal-dev
+ libxcursor-dev libxinerama-dev
+ mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libglew-dev;
+ 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;
+ fi
+ - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install glfw; fi
+ - "$CC --version"
+
+script:
+ - mkdir build
+ - cd build
+ - cmake -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
+ - make
+# - make package
+# - sudo make install
+#
+#deploy:
+# provider: releases
+# api_key:
+# secure: XXX
+# file_glob: true
+# file: raylib-*.tar.gz
+# skip_cleanup: true
+# on:
+# branch: master
+# tags: true
diff --git a/README.md b/README.md
index d782f994..6fe325d4 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,8 @@ NOTE for ADVENTURERS: raylib is a programming library to learn videogames progra
no fancy interface, no visual helpers, no auto-debugging... just coding in the most
pure spartan-programmers way. Are you ready to learn? Jump to [code examples!](http://www.raylib.com/examples.html)
+[![Build Status](https://travis-ci.org/raysan5/raylib.svg?branch=develop)](https://travis-ci.org/raysan5/raylib)
+
features
--------