forked from BLKSerene/Wordless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
105 lines (94 loc) · 3.07 KB
/
appveyor.yml
File metadata and controls
105 lines (94 loc) · 3.07 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# Wordless: CI - AppVeyor
#
# Copyright (C) 2018-2021 Ye Lei (叶磊)
#
# This source file is licensed under GNU GPLv3.
# For details, see: https://github.com/BLKSerene/Wordless/blob/master/LICENSE.txt
#
# All other rights reserved.
#
version: 1.5.0.{build}
environment:
matrix:
# Windows
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
PYTHON: "C:/Python38-x64"
# MacOS
- APPVEYOR_BUILD_WORKER_IMAGE: "macos-mojave"
PYTHON: "~/venv3.8"
# Linux
- APPVEYOR_BUILD_WORKER_IMAGE: "Ubuntu1604"
PYTHON: "$HOME/venv3.8"
cache:
# Windows
- "%LOCALAPPDATA%/pip/Cache"
# macOS
- "/Users/appveyor/Library/Caches/pip"
# Linux
- "/home/appveyor/.cache/pip"
stack: python 3.8
for:
# Windows
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
install:
- cmd: set PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%
# Check Python version
- python --version
# Install dependencies
- python -m pip install --upgrade pip setuptools
- pip install --requirement requirements.txt
# Download data
- python downloaders/wl_downloader_ci.py
# macOS
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: "macos-mojave"
install:
- cmd: set PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%
# Check Python version
- python --version
# Scikit-learn
- brew install libomp
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
- export CFLAGS="$CFLAGS -I/usr/local/opt/libomp/include"
- export CXXFLAGS="$CXXFLAGS -I/usr/local/opt/libomp/include"
- export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp"
# Install dependencies
- python -m pip install --upgrade pip setuptools
- pip install --requirement requirements.txt
# Download data
- python downloaders/wl_downloader_ci.py
# Ubuntu
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: "Ubuntu1604"
install:
- cmd: set PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%
# Check Python version
- python --version
# Install dependencies
- python -m pip install --upgrade pip setuptools
- pip install numpy
- pip install --requirement requirements.txt
# Download data
- python downloaders/wl_downloader_ci.py
build: off
before_test:
- cd src
# Run tests
test_script:
- pytest wl_tests/wl_text/test_sentence_tokenization.py
- pytest wl_tests/wl_text/test_word_tokenization.py
- pytest wl_tests/wl_text/test_word_detokenization.py
- pytest wl_tests/wl_text/test_pos_tagging.py
- pytest wl_tests/wl_text/test_lemmatization.py
- pytest wl_tests/wl_text/test_stop_word_lists.py
- pytest --ignore=wl_tests/wl_text/test_sentence_tokenization.py --ignore=wl_tests/wl_text/test_word_tokenization.py --ignore=wl_tests/wl_text/test_word_detokenization.py --ignore=wl_tests/wl_text/test_pos_tagging.py --ignore=wl_tests/wl_text/test_lemmatization.py --ignore=wl_tests/wl_text/test_stop_word_lists.py