forked from bastibe/lunatic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.18 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
35
36
37
38
language: c
sudo: required
dist: xenial
compiler:
- gcc
env:
- LUA_ENV=lua5.1 PY_ENV=python2.7 m_SUFFIX=
- LUA_ENV=lua5.2 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.2 PY_ENV=python3.6 m_SUFFIX=m
- LUA_ENV=lua5.3 PY_ENV=python3.6 m_SUFFIX=m
- LUA_ENV=lua5.1 PY_ENV=python3.8 m_SUFFIX=
- LUA_ENV=lua5.2 PY_ENV=python3.8 m_SUFFIX=
- LUA_ENV=lua5.3 PY_ENV=python3.8 m_SUFFIX=
before_install:
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- 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