travis: Enable mac build.
parent
126388806e
commit
9de5472f9c
|
@ -0,0 +1,5 @@
|
|||
[target.x86_64-apple-darwin]
|
||||
rustflags = [
|
||||
"-C", "link-arg=-undefined",
|
||||
"-C", "link-arg=dynamic_lookup",
|
||||
]
|
28
.travis.yml
28
.travis.yml
|
@ -1,6 +1,5 @@
|
|||
dist: bionic
|
||||
|
||||
language: python
|
||||
dist: bionic
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
@ -46,6 +45,16 @@ before_script:
|
|||
|
||||
jobs:
|
||||
include:
|
||||
- os: osx
|
||||
osx_image: xcode11.3
|
||||
language: rust
|
||||
install:
|
||||
- pip3 install -U maturin pytest
|
||||
- maturin list-python
|
||||
- cargo build
|
||||
- cp target/debug/libtantivy.dylib tantivy/tantivy.so
|
||||
script:
|
||||
- python3 -m pytest -v
|
||||
- language: rust
|
||||
name: 'rust linters'
|
||||
install: rustup component add clippy rustfmt
|
||||
|
@ -58,9 +67,22 @@ script:
|
|||
- pipenv run py.test -rws -v tests/
|
||||
|
||||
deploy:
|
||||
# Deploy for linux using the manylinux docker image.
|
||||
provider: script
|
||||
script: "ci/deploy.sh"
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
repo: tantivy-search/tantivy-py
|
||||
provider: script
|
||||
script: "ci/deploy.sh"
|
||||
|
||||
# Deploy for macos using maturin directly
|
||||
provider: script
|
||||
script:
|
||||
- maturin list-python
|
||||
- maturin publish --interpreter python3.7 --username __token__ --password $MATURIN_PASSWORD --no-sdist
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_OS_NAME = osx
|
||||
repo: tantivy-search/tantivy-py
|
||||
python: 3.8
|
||||
|
|
4
Pipfile
4
Pipfile
|
@ -8,5 +8,5 @@ maturin = ">=0.7.7"
|
|||
pytest = ">=4.0"
|
||||
e1839a8 = {path = "."}
|
||||
|
||||
[requires]
|
||||
python_version = "3.8"
|
||||
[packages]
|
||||
e1839a8 = {path = "."}
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "1c94e878490fee6005d6f867575b7724b9129e90d5f766d8344985bb9b3a4e07"
|
||||
"sha256": "41c202984a446d0a86a392ae69f2ffb01299874a6ef817a8353daddc8bb80175"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
"python_version": "3.8"
|
||||
},
|
||||
"requires": {},
|
||||
"sources": [
|
||||
{
|
||||
"name": "pypi",
|
||||
|
@ -15,7 +13,11 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"default": {},
|
||||
"default": {
|
||||
"e1839a8": {
|
||||
"path": "."
|
||||
}
|
||||
},
|
||||
"develop": {
|
||||
"attrs": {
|
||||
"hashes": [
|
||||
|
@ -48,10 +50,10 @@
|
|||
},
|
||||
"packaging": {
|
||||
"hashes": [
|
||||
"sha256:28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47",
|
||||
"sha256:d9551545c6d761f3def1677baf08ab2a3ca17c56879e70fecba2fc4dde4ed108"
|
||||
"sha256:aec3fdbb8bc9e4bb65f0634b9f551ced63983a529d6a8931817d52fdd0816ddb",
|
||||
"sha256:fe1d8331dfa7cc0a883b49d75fc76380b2ab2734b220fbb87d774e4fd4b851f8"
|
||||
],
|
||||
"version": "==19.2"
|
||||
"version": "==20.0"
|
||||
},
|
||||
"pluggy": {
|
||||
"hashes": [
|
||||
|
|
Loading…
Reference in New Issue