diff --git a/appveyor.yml b/appveyor.yml index 28b4373f..5021bf63 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,6 +7,9 @@ environment: matrix: - PYTHON_VERSION: 3.6 MINICONDA_DIRNAME: C:\Miniconda36-x64 + + ANACONDA_TOKEN: + secure: nxF/a2f3iS9KXGu7B/wKJYAk7Sm5wyAjoZoqJvPbRoVK4saaozVwOxDrjwJjJAYb install: - set "PATH=%MINICONDA_DIRNAME%;%MINICONDA_DIRNAME%\\Scripts;%PATH%" @@ -19,4 +22,16 @@ install: build: false test_script: - - coverage run runtests.py \ No newline at end of file + - coverage run runtests.py + +deploy: +- provider: Script + on: + APPVEYOR_REPO_TAG: true + +before_deploy: + - conda install anaconda-client conda-build + - call conda_build.bat + +deploy_script: + - anaconda -v -t %ANACONDA_TOKEN% upload --force --user cadquery cadquery-*.tar.bz2 \ No newline at end of file diff --git a/conda_build.bat b/conda_build.bat new file mode 100644 index 00000000..48f38ebc --- /dev/null +++ b/conda_build.bat @@ -0,0 +1 @@ +conda build conda/meta.yaml -c pythonocc -c oce -c conda-forge -c dlr-sc