Skip to content

Commit 4a188e2

Browse files
committed
Test equality with stable version
1 parent c27efc7 commit 4a188e2

File tree

12 files changed

+28
-710
lines changed

12 files changed

+28
-710
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@ notifications:
22
email: false
33

44
install:
5-
- python setup.py build_ext --inplace
65
- pip3 install .
76
script:
8-
- pip3 install pytest pytest-cov
9-
- pytest --cov=gdist
7+
- pip3 install nose2 nose2-cov
8+
- nose2 --with-coverage
109

1110
jobs:
1211
include:
1312
- name: "Python 3.8 on Xenial Linux"
1413
language: python
1514
python: 3.8
16-
before_install: pip3 install codecov
15+
before_install:
16+
- pip3 install codecov
17+
- sudo chmod +x linux_so.sh
18+
- ./linux_so.sh
1719
after_success: codecov
1820
- name: "Python 3.7.4 on macOS"
1921
os: osx
2022
osx_image: xcode11.2
2123
language: shell
24+
before_install:
25+
- chmod 755 macos_dylib.sh
26+
- ./macos_dylib.sh
2227
- name: "Python 3.8.0 on Windows"
2328
os: windows
2429
language: shell

alternative_geodesic.py

Lines changed: 0 additions & 224 deletions
This file was deleted.

create_dll.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ mkdir build\lib.win32
4343

4444
cd build\lib.win32
4545

46-
cl.exe /LD /DDLL_EXPORTS /DNDEBUG ..\..\gdist_c_api.cpp
46+
cl.exe /LD /DDLL_EXPORTS ..\..\geodesic_library\gdist_c_api.cpp
4747
ls

gdist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def local_gdist_matrix(
150150
triangles,
151151
max_distance,
152152
)
153+
assert data.size % 3 == 0
153154
sizes = data.size // 3
154155
rows = data[:sizes]
155156
columns = data[sizes: 2 * sizes]

0 commit comments

Comments
 (0)