Skip to content

Commit f12952b

Browse files
authored
Merge pull request #21 from messense/feature/travis-ci
Add Travis CI integration
2 parents f2a9f36 + c695133 commit f12952b

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-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

example/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ version = "0.1.0"
88
default-features = false
99

1010
[lib]
11+
crate-type = ["cdylib"]
1112
name = "helloworld"

0 commit comments

Comments
 (0)