-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
46 lines (37 loc) · 904 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
44
45
language: c
# Select container based VM (for os == linux).
sudo: false
# Use gcc as the C compiler (clang is also available).
compiler: gcc
# Specify operating systems to test on (linux and/or osx).
os:
- linux
- osx
# Environment variables for the build.
env:
global:
- LUAROCKS=2.3.0
matrix:
- LUA=LuaJIT-2.0.4
- LUA=Lua-5.2.4
- LUA=5.3.2
# Only test changes to the master branch.
branches:
only:
- master
# Disable email notifications.
notifications:
email: false
# Install dependencies (Lua, Luarocks, ...).
install:
- . .travis/install.sh
- luarocks install luasocket
# Build (and test?) your project.
script:
- luarocks make CFLAGS="-Wall -O2 -fPIC"
- (cd tests && lua str.lua)
- (cd tests && lua mmapcat.lua)
- (cd tests && lua mmaprev.lua)
- (cd tests && lua proctest.lua)
- (cd tests && lua semtest.lua)
- (cd tests && lua shmtest.lua)