-
Notifications
You must be signed in to change notification settings - Fork 20
/
appveyor.yml
63 lines (56 loc) · 1.9 KB
/
appveyor.yml
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
# Set up environment.
environment:
# NodeJS version
nodejs_version: "10"
# Run for both architecture for python 3.8.x
matrix:
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
# Set python path.
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
# Installations.
install:
# Upgrade pip to the latest version.
- python -m pip install --upgrade pip
- pip install numpy
- pip install -r requirements.txt
- pip install -r dev_requirements.txt
# Update Chocolately
- choco upgrade chocolatey
# Set up node js checks.
- choco install nodejs --legacy-peer-deps --force --version=22.0.0
# use npm to install all the dependencies.
- cd .\lexos\frontend
- npm install --legacy-peer-deps --force
- cd ..\..
# Set only master branch.
branches:
only:
- master
test_script:
# Test for python static analysis.
- flake8 --ignore E121,E123,E126,E226,E24,E704,W503,W504,E741,N818
# Unit testing.
- pytest --cov=.\lexos
# Doc style, at the moment only test files under models and receivers.
- pydocstyle lexos\models\
- pydocstyle lexos\receivers\
# Test for javascript code style
- cd .\lexos\frontend
# Following line is commented out, frontend refactor is not completed
- ./node_modules/.bin/eslint ./js/*.js
#- .\node_modules\.bin\eslint .\js\scripts_statistics.js
#- .\node_modules\.bin\eslint .\js\scripts_similarity.js
#- .\node_modules\.bin\eslint .\js\scripts_dendrogram.js
#- .\node_modules\.bin\eslint .\js\scripts_rwanalysis.js
#- .\node_modules\.bin\eslint .\js\scripts_tokenizer.js
#- .\node_modules\.bin\eslint .\js\scripts_upload.js
#- .\node_modules\.bin\eslint .\js\scripts_manage.js
#- .\node_modules\.bin\eslint .\js\scripts_kmeans.js
#- .\node_modules\.bin\eslint .\js\scripts_scrub.js
#- .\node_modules\.bin\eslint .\js\scripts_cut.js
#- .\node_modules\.bin\eslint .\js\scripts_bct.js
- cd ..\..
build: off