-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
43 lines (41 loc) · 1.21 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
language: python
os: linux
dist: bionic
python:
# - "2.7"
- "3.8"
before_script:
# building nasm. Version 2.13 required
- curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.bz2
- tar xjvf nasm-2.13.01.tar.bz2
- cd nasm-2.13.01
# patch that removes pure qualifiers
- curl -O -L https://src.fedoraproject.org/rpms/nasm/raw/0cc3eb244bd971df81a7f02bc12c5ec259e1a5d6/f/0001-Remove-invalid-pure_func-qualifiers.patch
- patch include/nasmlib.h < 0001-Remove-invalid-pure_func-qualifiers.patch
- ./autogen.sh
- ./configure
- make -j 6
- sudo make install
- cd ..
- nasm -v
# building protobuf
- cd libs/protobuf
- ./autogen.sh
- ./configure
- make -j 6
- sudo make install
- sudo ldconfig
- cd ../..
# this does not work due to protobuf version mismatch
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y protobuf-compiler; fi
- protoc --version
- pushd sources/protobuf/
- protoc example.proto --cpp_out=.
- popd
install:
- pip install wheel Pillow numpy
script:
# - python setup.py bdist_wheel -d wheel/
- python setup.py develop --user
- python test_dareblopy.py