summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: d64f152cb7f4b1113658afb1cf4f89b46d96e0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: cpp

compiler:
 - gcc
 - clang

before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get -y install gcc-4.8 g++-4.8
- sudo apt-get -y install git cmake make pkg-config libpng-dev
- sudo apt-get -y install libxi-dev libglu1-mesa-dev x11proto-randr-dev x11proto-xext-dev libxrandr-dev x11proto-xf86vidmode-dev libxxf86vm-dev

install:
- export CURRENT_DIR=$(pwd)
- git clone https://github.com/glfw/glfw.git
- cd glfw
- mkdir build
- cd build
- cmake ../ -DCMAKE_C_COMPILER_ENV_VAR=gcc-4.8
- make
- sudo make install
- cd ${CURRENT_DIR}

before_script:
- export CXX="g++-4.8"

script:
- ./configure
- make