Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update Travis build script for macOS

davidmezzetti9b677d685455
diff --git a/.travis.yml b/.travis.yml
index 624de33d..3a3a0e5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,10 +11,14 @@ jobs:
- coveralls
- name: "macOS"
os: osx
- osx_image: xcode11.3
+ osx_image: xcode11.6
language: shell
script:
- make PYTHON=python3 test
+ install:
+ - pip3 install -U pip wheel coverage coveralls
+ - pip3 install . --no-binary faiss-cpu
+ - python3 --version
- name: "Windows"
os: windows
language: shell
@@ -25,8 +29,8 @@ jobs:
- python -m pip install -U pip wheel
- python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
install:
- - pip3 install -U pip wheel coverage coveralls
- - pip3 install .
- - python3 --version || python --version
+ - pip install -U pip wheel coverage coveralls
+ - pip install .
+ - python --version
script:
- make test
diff --git a/test/python/testann.py b/test/python/testann.py
index 8d763637..42f13156 100644
--- a/test/python/testann.py
+++ b/test/python/testann.py
@@ -22,7 +22,6 @@ class TestANN(unittest.TestCase):
self.assertEqual(self.backend("annoy").config["backend"], "annoy")
- @unittest.skipIf(os.name == "nt", "Faiss not installed on Windows")
def testFaiss(self):
"""
Test Faiss backend