-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
44 lines (35 loc) · 974 Bytes
/
.travis.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
language: cpp
# select VM with recent Ubuntu version and sudo (for os == linux)
sudo: required
dist: trusty
# use gcc as the C compiler
compiler: gcc
# specify operating systems to test on (linux and/or osx)
os:
- linux
- osx
# environment variables for the build
env:
global:
- LUAROCKS=3.3.1
matrix:
- LUA=5.1.5
- LUA=5.2.4
- LUA=5.3.5
# only test changes to the master branch
branches:
only:
- master
# disable email notifications
notifications:
email: false
# install dependencies (lua, luarocks, ...)
install:
- . .travis/install.sh
- if [ "`uname -s`" = Linux ]; then sudo apt-get update -qq; fi
- if [ "`uname -s`" = Linux ]; then sudo apt-get install -qq libfltk1.3-dev; fi
- if [ "`uname -s`" = Darwin ]; then brew update; fi
- if [ "`uname -s`" = Darwin ]; then brew install fltk; fi
# build (and test?) the project
script:
- luarocks make CFLAGS="-Wall -O2 -fPIC" && lua -e 'print(require"fltk4lua"._VERSION)'