Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Commit 03488c4

Browse files
committed
add .travis.yml
1 parent 20a0dc8 commit 03488c4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: required
2+
dist: trusty
3+
language: c
4+
compiler:
5+
- gcc
6+
- clang
7+
python:
8+
- 2.7
9+
- 3.5
10+
install:
11+
- sudo apt-get -qq update
12+
- sudo apt-get -y install gcc clang cmake
13+
# for python bindings
14+
- sudo apt-get -y install python python3
15+
- sudo apt-get -y install python-pip python3-pip
16+
- /usr/bin/python3 --version
17+
- /usr/bin/python2 --version
18+
- /usr/bin/pip3 --version
19+
- /usr/bin/pip2 --version
20+
script:
21+
- cmake .
22+
- make
23+
# for python bindings
24+
- cd bindings/python
25+
- /usr/bin/python3 setup.py sdist
26+
- sudo /usr/bin/pip3 install -v dist/*.tar.gz
27+
- /usr/bin/python2 setup.py sdist
28+
- sudo /usr/bin/pip2 install -v dist/*.tar.gz
29+
- cd ../..
30+
- /usr/bin/python3 bindings/python/tests/main.py
31+
- /usr/bin/python2 bindings/python/tests/main.py

0 commit comments

Comments
 (0)