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",
|
||||||
|
]
|
42
.travis.yml
42
.travis.yml
|
@ -1,6 +1,5 @@
|
||||||
dist: bionic
|
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
|
dist: bionic
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@ -46,21 +45,44 @@ before_script:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
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
|
- language: rust
|
||||||
name: 'rust linters'
|
name: 'rust linters'
|
||||||
install: rustup component add clippy rustfmt
|
install: rustup component add clippy rustfmt
|
||||||
script:
|
script:
|
||||||
- cargo clippy
|
- cargo clippy
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
stage: lint
|
stage: lint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- pipenv run py.test -rws -v tests/
|
- pipenv run py.test -rws -v tests/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
# Deploy for linux using the manylinux docker image.
|
||||||
script: "ci/deploy.sh"
|
provider: script
|
||||||
on:
|
script: "ci/deploy.sh"
|
||||||
tags: true
|
on:
|
||||||
repo: tantivy-search/tantivy-py
|
tags: true
|
||||||
python: 3.8
|
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
|
||||||
|
|
4
Pipfile
4
Pipfile
|
@ -8,5 +8,5 @@ maturin = ">=0.7.7"
|
||||||
pytest = ">=4.0"
|
pytest = ">=4.0"
|
||||||
e1839a8 = {path = "."}
|
e1839a8 = {path = "."}
|
||||||
|
|
||||||
[requires]
|
[packages]
|
||||||
python_version = "3.8"
|
e1839a8 = {path = "."}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"hash": {
|
"hash": {
|
||||||
"sha256": "1c94e878490fee6005d6f867575b7724b9129e90d5f766d8344985bb9b3a4e07"
|
"sha256": "41c202984a446d0a86a392ae69f2ffb01299874a6ef817a8353daddc8bb80175"
|
||||||
},
|
},
|
||||||
"pipfile-spec": 6,
|
"pipfile-spec": 6,
|
||||||
"requires": {
|
"requires": {},
|
||||||
"python_version": "3.8"
|
|
||||||
},
|
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"name": "pypi",
|
"name": "pypi",
|
||||||
|
@ -15,7 +13,11 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default": {},
|
"default": {
|
||||||
|
"e1839a8": {
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
"develop": {
|
"develop": {
|
||||||
"attrs": {
|
"attrs": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
|
@ -48,10 +50,10 @@
|
||||||
},
|
},
|
||||||
"packaging": {
|
"packaging": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47",
|
"sha256:aec3fdbb8bc9e4bb65f0634b9f551ced63983a529d6a8931817d52fdd0816ddb",
|
||||||
"sha256:d9551545c6d761f3def1677baf08ab2a3ca17c56879e70fecba2fc4dde4ed108"
|
"sha256:fe1d8331dfa7cc0a883b49d75fc76380b2ab2734b220fbb87d774e4fd4b851f8"
|
||||||
],
|
],
|
||||||
"version": "==19.2"
|
"version": "==20.0"
|
||||||
},
|
},
|
||||||
"pluggy": {
|
"pluggy": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
|
|
Loading…
Reference in New Issue