-
Notifications
You must be signed in to change notification settings - Fork 50
/
appveyor.yml
44 lines (38 loc) · 1.44 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
environment:
global:
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\.appveyor\\run_with_env.cmd"
PYPATH: "C:\\Miniconda3"
ANACONDA_TOKEN:
secure: aGxw9nEg+McADa71cxEuNwcuufgptKexXZJh0HM0Msh5QP1EFa7we5g8gJsbSGCo
matrix:
- PYTHON_VERSION: "3.7"
- PYTHON_VERSION: "3.8"
matrix:
fast_finish: true
platform:
- x64
- x86
install:
- IF "%APPVEYOR_REPO_TAG%"=="true" (SET TRAVIS_TAG=%APPVEYOR_REPO_TAG_NAME%) ELSE (SET TRAVIS_TAG=)
- "SET TRAVIS_BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%"
- IF "%PLATFORM%"=="x64" (SET PYSUFFIX=-x64) ELSE (SET PYSUFFIX=)
- "SET PATH=%PYPATH%%PYSUFFIX%;%PYPATH%%PYSUFFIX%\\Scripts;%PATH%"
- "conda config --set always_yes yes --set changeps1 no"
- "conda update -q conda"
- "conda install -q conda-build anaconda-client"
- "conda create -q --yes -n py%PYTHON_VERSION% python=%PYTHON_VERSION%"
- "activate py%PYTHON_VERSION%"
- "python --version"
- "conda info -a"
build_script:
- "ECHO %PYPATH% %PYTHON% %PYTHON_VERSION% %PLATFORM% %PYSUFFIX%"
- "%WITH_COMPILER% conda build -q --python=%PYTHON_VERSION% --no-test .conda"
test_script:
- "conda install -q --use-local rayopt"
# - "python -m unittest discover rayopt.test"
# - "%WITH_COMPILER% python setup.py test"
- "python setup.py test"
#artifacts:
# - path: "%PYPATH%%PYSUFFIX%\\conda-bld\\win-*\\*.tar.bz2"
on_success:
- "anaconda -t %ANACONDA_TOKEN% upload --no-progress --channel ci %PYPATH%%PYSUFFIX%\\conda-bld\\win-*\\*.tar.bz2"