-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (39 loc) · 1.06 KB
/
.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
38
39
40
41
42
43
language: rust
rust:
- nightly
os: osx
env:
- PYTHON_VERSION=3.5.6 PYTHON_NATIVE_ABI=35
- PYTHON_VERSION=3.6.6 PYTHON_NATIVE_ABI=36
- PYTHON_VERSION=3.7.0 PYTHON_NATIVE_ABI=37
cache: cargo
before_install:
- rustup default nightly
- brew update && brew upgrade pyenv
- eval "$(pyenv init -)"
- pyenv install $PYTHON_VERSION
- pyenv global $PYTHON_VERSION
- pip install --upgrade pip
- rustup --version; cargo --version;rustc --version;python -V;pip -V;
install:
- pip install -r requirement-dev.txt --user
script: |
python compile.py build && \
cp build/lib/py_sourcemap/*.so py_sourcemap/py_sourcemap.so && \
mkdir -p natives && \
cp py_sourcemap/py_sourcemap.so "natives/py_sourcemap.cpython-${PYTHON_NATIVE_ABI}m-x86_64-apple-darwin.so" && \
$HOME/.local/bin/pytest
deploy:
- provider: releases
api_key:
secure: $GITHUB_TOKEN
file_glob: true
file: natives/*.so
skip_cleanup: true
on:
tags: true
- provider: script
script: python upload-ali-oss.py natives/*.so
skip_cleanup: true
on:
tags: true