Skip to content

Commit bc78fff

Browse files
committed
Add Travis-CI configuration
1 parent c5997da commit bc78fff

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: rust
2+
dist: xenial
3+
4+
addons:
5+
apt:
6+
sources:
7+
- deadsnakes
8+
packages:
9+
- python3.5-dev
10+
- python3.6-dev
11+
- python3.6-venv
12+
- python3.7-dev
13+
14+
matrix:
15+
fast_finish: true
16+
include:
17+
- os: linux
18+
rust: nightly-2019-02-04
19+
- os: osx
20+
rust: nightly-2019-02-04
21+
22+
install:
23+
- |
24+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
25+
python3 -m venv venv
26+
source venv/bin/activate
27+
pip install cffi virtualenv
28+
fi
29+
- |
30+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
31+
python3.6 -m venv venv
32+
source venv/bin/activate
33+
pip install cffi virtualenv
34+
fi
35+
- cargo install pyo3-pack
36+
- rustup default nightly-2019-02-04
37+
- rustup component add rustfmt
38+
39+
script:
40+
- pyo3-pack build
41+
- cargo fmt --all -- --check

0 commit comments

Comments
 (0)