forked from dgrunwald/rust-cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (37 loc) · 977 Bytes
/
.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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
env:
- RUST_VERSION=1.41.1
- RUST_VERSION=stable
- RUST_VERSION=nightly
matrix:
include:
- os: osx
language: generic
env: RUST_VERSION=1.41.1
- os: osx
language: generic
env: RUST_VERSION=stable
- os: osx
language: generic
env: RUST_VERSION=nightly
sudo: false
install:
- python -V
- python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
- curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile=minimal --default-toolchain "$RUST_VERSION"
- export PATH="$HOME/.cargo/bin:$PATH"
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- find $PYTHON_LIB
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB"
- rustc -V
script:
- make test extensions