forked from bastibe/lunatic-python
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (27 loc) · 1.07 KB
/
.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
language: c
sudo: required
dist: trusty
compiler:
- gcc
env:
- LUA_ENV=lua5.1 PY_ENV=python2.7 m_SUFFIX=
- LUA_ENV=lua5.3 PY_ENV=python2.7 m_SUFFIX=
- LUA_ENV=lua5.1 PY_ENV=python3.6 m_SUFFIX=m
- LUA_ENV=lua5.3 PY_ENV=python3.6 m_SUFFIX=m
before_install:
- sudo add-apt-repository -y "deb http://ppa.launchpad.net/grilo-team/travis/ubuntu trusty main"
- sudo add-apt-repository -y "deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main"
- sudo apt-get update -qq
install:
- sudo apt-get install -qq --force-yes ${LUA_ENV}
- sudo apt-get install -qq --force-yes ${PY_ENV}
- sudo apt-get install -qq --force-yes lib${LUA_ENV}-dev
- sudo apt-get install -qq --force-yes lib${PY_ENV}-dev
- ${LUA_ENV} -v
- ${PY_ENV} --version
script:
- cmake -B./build -H. -DPYTHON_INCLUDE_DIR=/usr/include/${PY_ENV}${m_SUFFIX} -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/lib${PY_ENV}${m_SUFFIX}.so
- cmake --build ./build
- cd ./build/bin
- ${PY_ENV} ../../tests/test_lua.py
- ${LUA_ENV} ../../tests/test_py.lua