Skip to content

Commit 514cacd

Browse files
committed
Add Travis CI integration
1 parent f2a9f36 commit 514cacd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
sudo: required
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.5"
6+
- "3.6"
7+
8+
env:
9+
- RUST_VERSION=nightly
10+
11+
install:
12+
- python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
13+
- mkdir ~/rust-installer
14+
- curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
15+
- sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=$RUST_VERSION -y
16+
- export PATH="$HOME/rust/bin:$PATH"
17+
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
18+
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
19+
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
20+
- rustc -V
21+
- pip install -e .
22+
23+
script:
24+
- cd example && python setup.py develop

0 commit comments

Comments
 (0)