99# environment configuration #
1010# ---------------------------------#
1111
12- image : Visual Studio 2017
12+ image : Visual Studio 2019
1313
1414# scripts that are called at very beginning, before repo cloning
1515init :
@@ -32,17 +32,17 @@ init:
3232 - " ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON%"
3333 - ECHO %PYTHONIOENCODING%
3434 - ECHO %ICU_VERSION%
35- # - ECHO "Installed SDKs:"
36- # - ps: "ls C:/Python*"
37- # - ps: "ls \"C:/Program Files (x86)/Microsoft SDKs/Windows\""
35+ - ECHO "Installed SDKs:"
36+ - ps : " ls C:/Python*"
37+ - ps : " ls \" C:/Program Files (x86)/Microsoft SDKs/Windows\" "
3838
3939# fetch repository as zip archive
4040# https://www.appveyor.com/docs/how-to/repository-shallow-clone/
4141shallow_clone : true
4242
4343environment :
4444 global :
45- APPVEYOR_SAVE_CACHE_ON_ERROR : true
45+ APPVEYOR_SAVE_CACHE_ON_ERROR : false
4646 APPVEYOR_SKIP_FINALIZE_ON_EXIT : true
4747 CMD_IN_ENV : " cmd /E:ON /V:ON /C .\\ appveyor\\ run_with_env.cmd"
4848 PYTHONIOENCODING : " utf-8"
@@ -56,7 +56,7 @@ environment:
5656 # PYTHON_ARCH: "32"
5757 # PYICU_PKG: "https://www.dropbox.com/s/pahorbq29y9cura/PyICU-2.3.1-cp36-cp36m-win32.whl?dl=1"
5858
59- - PYTHON : " C:/Python36 -x64"
59+ - PYTHON : " C:\\ Miniconda36 -x64"
6060 PYTHON_VERSION : " 3.6"
6161 PYTHON_ARCH : " 64"
6262 PYICU_PKG : " https://www.dropbox.com/s/7t0rrxwckqbgivi/PyICU-2.3.1-cp36-cp36m-win_amd64.whl?dl=1"
@@ -66,39 +66,42 @@ environment:
6666 # PYTHON_ARCH: "32"
6767 # PYICU_PKG: "https://www.dropbox.com/s/3xwdnwhdcu619x4/PyICU-2.3.1-cp37-cp37m-win32.whl?dl=1"
6868
69- - PYTHON : " C:/Python37-x64"
70- PYTHON_VERSION : " 3.7"
71- PYTHON_ARCH : " 64"
72- PYICU_PKG : " https://www.dropbox.com/s/le5dckc3231opqt/PyICU-2.3.1-cp37-cp37m-win_amd64.whl?dl=1"
69+ # - PYTHON: "C:/Python37-x64"
70+ # PYTHON_VERSION: "3.7"
71+ # PYTHON_ARCH: "64"
72+ # PYICU_PKG: "https://www.dropbox.com/s/le5dckc3231opqt/PyICU-2.3.1-cp37-cp37m-win_amd64.whl?dl=1"
7373
74- # - PYTHON: "C:/Python38 -x64"
74+ # - PYTHON: "C:\\Miniconda38 -x64"
7575 # PYTHON_VERSION: "3.8"
7676 # PYTHON_ARCH: "64"
77- # PYICU_PKG: "https://www.dropbox.com/s/o6p2sj5z50iim1e/PyICU-2.3.1-cp38-cp38-win_amd64.whl?dl=0 "
77+ # PYICU_PKG: "https://www.dropbox.com/s/o6p2sj5z50iim1e/PyICU-2.3.1-cp38-cp38-win_amd64.whl?dl=1 "
7878
7979matrix :
8080 fast_finish : true
8181
82- cache :
83- - " %LOCALAPPDATA%/pip/Cache"
84- - " %APPDATA%/nltk_data"
82+ # cache:
83+ # - "%LOCALAPPDATA%/pip/Cache"
84+ # - "%APPDATA%/nltk_data"
8585# - "%LOCALAPPDATA%/pythainlp-data"
8686
8787install :
8888 - chcp 65001
89+ - " SET PATH=%PYTHON%;%PYTHON%\\ Scripts;%PATH%"
8990# - '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%'
90- - ' "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%'
91- # - '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%'
91+ # - '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%'
92+ - ' "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%'
9293 - ps : if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
93- - SET PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%
94- # - ECHO %PATH%
94+ - ECHO %PATH%
9595 - python --version
9696 - python -m pip install --disable-pip-version-check --user --upgrade pip setuptools
97- - pip --version
98- - pip install -U "h5py>=2.10.0,<3" "tensorflow>=2.3.1,<3" deepcut
99- - pip install torch==1.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
100- - pip install %PYICU_PKG%
101- - pip install -e .[full]
97+ - python -m pip --version
98+ - python -m pip install pyyaml
99+ - python -m pip install -U "h5py>=2.10.0,<3" "tensorflow>=2.3.1,<3" deepcut
100+ - python -m pip install %PYICU_PKG%
101+ - conda install -y -c conda-forge fairseq
102+ - conda remove --force -y pytorch
103+ - python -m pip install torch==1.7.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
104+ - python -m pip install -e .[full]
102105
103106# ---------------------------------#
104107# build configuration #
@@ -121,20 +124,20 @@ test_script:
121124# global handlers #
122125# ---------------------------------#
123126
124- on_success :
125- # Remove old or huge cache files to hopefully not exceed the 1GB cache limit.
126- #
127- # If the cache limit is reached, the cache will not be updated (of not even
128- # created in the first run). So this is a trade of between keeping the cache
129- # current and having a cache at all.
130- # NB: This is done only `on_success` since the cache in uploaded only on
131- # success anyway.
132- # Note: Cygwin is not available on Visual Studio 2019, can try Msys2.
133- - " ECHO Remove old or huge cache"
134- - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -type f -mtime +360 -delete
135- - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -type f -size +50M -delete
136- - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -empty -delete
137- # Show size of cache
138- - C:\cygwin\bin\du -hs "%LOCALAPPDATA%/pip/Cache"
139- - C:\cygwin\bin\du -hs "%APPDATA%/nltk_data"
140- - C:\cygwin\bin\du -hs "%LOCALAPPDATA%/pythainlp-data"
127+ # on_success:
128+ # # Remove old or huge cache files to hopefully not exceed the 1GB cache limit.
129+ # #
130+ # # If the cache limit is reached, the cache will not be updated (of not even
131+ # # created in the first run). So this is a trade of between keeping the cache
132+ # # current and having a cache at all.
133+ # # NB: This is done only `on_success` since the cache in uploaded only on
134+ # # success anyway.
135+ # # Note: Cygwin is not available on Visual Studio 2019, can try Msys2.
136+ # - "ECHO Remove old or huge cache"
137+ # - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -type f -mtime +360 -delete
138+ # - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -type f -size +50M -delete
139+ # - C:\cygwin\bin\find "%LOCALAPPDATA%/pip" -empty -delete
140+ # # Show size of cache
141+ # - C:\cygwin\bin\du -hs "%LOCALAPPDATA%/pip/Cache"
142+ # - C:\cygwin\bin\du -hs "%APPDATA%/nltk_data"
143+ # - C:\cygwin\bin\du -hs "%LOCALAPPDATA%/pythainlp-data"
0 commit comments