-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
62 lines (55 loc) · 2.09 KB
/
.travis.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
language: python
dist: xenial
python:
- "3.6"
- "3.7"
cache: pip
# command to install dependencies
env:
global:
- COVERALLS_PARALLEL=true
matrix:
# Labeling
- TEST_FILE=tests/labeling/
# classification part 1
- TEST_FILE="tests/classification/test_cnn_lstm.py tests/classification/test_cnn_gru.py tests/classification/test_cnn.py tests/classification/test_kmax_cnn.py"
# classification part 2
- TEST_FILE="tests/classification/test_r_cnn.py tests/classification/test_dropout_bigru.py tests/classification/test_avcnn.py tests/classification/test_bi_gru.py"
# classification part 3
- TEST_FILE="tests/classification/test_dpcnn.py tests/classification/test_bi_lstm.py tests/classification/test_avrnn_model.py tests/classification/test_dropout_avrnn.py"
- TEST_FILE="tests/test_callbacks.py tests/test_corpus.py tests/test_processor.py"
- TEST_FILE=tests/test_custom_multi_output_classification.py
# Embedding
- TEST_FILE=tests/embedding/
# - TEST_FILE=tests/embedding/test_bert_embedding.py
# - TEST_FILE=tests/embedding/test_gpt2_embedding.py
# - TEST_FILE=tests/embedding/test_numeric_features_embedding.py
# - TEST_FILE=tests/embedding/test_stacked_embedding.py
# - TEST_FILE=tests/embedding/test_bare_embedding.py
# - TEST_FILE=tests/embedding/test_word_embedding.py
before_install:
- export BOTO_CONFIG=/dev/null
install:
- pip install jieba
- pip install python-coveralls
- pip install -e .
- pip install tensorflow==1.14.0
- pip install coverage
- pip install nose
- pip install pytest pytest-cov
- pip install flake8 flake8-builtins
- python -c "import kashgari;print(f'kashgari version {kashgari.__version__}')"
addons:
sonarcloud:
organization: "brikerman-github"
token:
secure: $SONAR_TOKEN
script:
- git fetch --unshallow --quiet
- flake8 kashgari
- nosetests --with-coverage --cover-html --cover-html-dir=htmlcov --cover-xml --cover-xml-file=coverage.xml --with-xunit --cover-package="kashgari" $TEST_FILE
after_script:
- sonar-scanner
- coveralls
notifications:
webhooks: https://coveralls.io/webhook