forked from OddSource/lunatic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
129 lines (125 loc) · 3.85 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
language: python
sudo: false
dist: trusty
matrix:
include:
- env: LUA_ENV=lua5.1
python: '2.7'
addons:
apt:
packages:
- lua5.1
- liblua5.1-dev
- env: LUA_ENV=lua5.1
python: '3.4'
addons:
apt:
packages:
- lua5.1
- liblua5.1-dev
- env: LUA_ENV=lua5.1
python: '3.5'
addons:
apt:
packages:
- lua5.1
- liblua5.1-dev
- env: LUA_ENV=lua5.1
python: '3.6'
addons:
apt:
packages:
- lua5.1
- liblua5.1-dev
- env: LUA_ENV=lua5.2
python: '2.7'
addons:
apt:
packages:
- lua5.2
- liblua5.2-dev
- env: LUA_ENV=lua5.2
python: '3.4'
addons:
apt:
packages:
- lua5.2
- liblua5.2-dev
- env: LUA_ENV=lua5.2
python: '3.5'
addons:
apt:
packages:
- lua5.2
- liblua5.2-dev
- env: LUA_ENV=lua5.2
python: '3.6'
addons:
apt:
packages:
- lua5.2
- liblua5.2-dev
# - env: LUA_ENV=lua5.3 TODO after xenial is available
# python: '2.7'
# addons:
# apt:
# packages:
# - lua5.3
# - liblua5.3-dev
# - env: LUA_ENV=lua5.3
# python: '3.4'
# addons:
# apt:
# packages:
# - lua5.3
# - liblua5.3-dev
# - env: LUA_ENV=lua5.3
# python: '3.5'
# addons:
# apt:
# packages:
# - lua5.3
# - liblua5.3-dev
# - env: LUA_ENV=lua5.3
# python: '3.6'
# addons:
# apt:
# packages:
# - lua5.3
# - liblua5.3-dev
install:
- export m_SUFFIX=""
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then export m_SUFFIX="m"; fi
- export PYTHON_PREFIX="$(python-config --prefix)"
- export PKG_CONFIG_PATH="${PYTHON_PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH"
- echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
- export PYTHON_INCLUDE="$PYTHON_PREFIX/include/python${TRAVIS_PYTHON_VERSION}${m_SUFFIX}"
- echo "PYTHON_INCLUDE=$PYTHON_INCLUDE"
- export PYTHON_LIBRARY="$(pkg-config --libs python-${TRAVIS_PYTHON_VERSION} | cut -c 3-9999 | cut -d " " -f 1)/libpython${TRAVIS_PYTHON_VERSION}${m_SUFFIX}.so"
- echo "PYTHON_LIBRARY=$PYTHON_LIBRARY"
- pip install -U pip setuptools
script:
- ${LUA_ENV} -v
- pip install -vvv -e .
- ls -al
- python -m tests.test_lua_in_python
- echo "Now we test the lua-in-python-in-lua and python-in-lua-in-python modes"
- ls -al $PYTHON_INCLUDE/Python.h
- ls -al $PYTHON_LIBRARY
- cmake -B./build -H. -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE} -DPYTHON_LIBRARY=${PYTHON_LIBRARY}
- cmake --build ./build
- cd ./build/bin
- python ../../tests/test_python_in_lua_in_python.py
- ${LUA_ENV} ../../tests/test_python_in_lua.lua
- cd ../../
deploy:
provider: pypi
user: beamerblvd
password:
# travis encrypt -r OddSource/lunatic-python [password]
secure: ecfWU65HQcV2xTdRCVbwxtx9/uIXnIrl+A7qAgRpW8W3Q7vEQxLJWC3QNclHEqHDb9iijQDprkxA0uolRPYk4FkDR2rvIVeW8MJ3uobSIljPIkyqa3DEsHJyZnxYY1n2F2GkunntjiJkn+FSb+KX/lyy2DSKUamxeyLzksSMIgnoOkrSowQRHauJnPo1efaCiBy3sM0g/v0bmR1TJup6r4zieJs2I2y8Z8EB9WgV2/rf/VAqWZFk1/UYm+kuvtnkNTi3+TqbjfSjYERE4wZqrjIzMx4mkvyX+jIDVuqp/XlFQ8Rtv0pb5VPjVD7eATvvab1jctgnE52Zzc0RBR2j/ymSqm6Y962bTkbE5UBa+mLasq8e/y6v+FGGSOrG5YaQHbqmJAO4beETBErEOjkMhntgxBu9Lov2H0UZCl1Qpo/y4akMJzqQiOGIU0BIEUw35K/TQANXXy1RI+9i3hhho/PwSMnCBaHUKBP3QABr7oHbQYcHdPOKDfN86x9oTRLQeUfSd/THVSGbKcxZ/MTc/A72T5gWhcpswzAHBoV+6boJxIaxm8XY8uVDc6sbBLnr2B5RO+NjL16SbSpAdUg6qZUWERoeLRzCbP5yQVkVuI5K6wcKj0/e29Suq/LmfHbESFXm7tLsypvT7th2zM0kkQsNjjW7Yx8sNI9eDoVRSBc=
distributions: 'sdist'
on:
tags: true
condition: '$LUA_ENV == lua5.2'
python: '3.6'