This repository was archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathappveyor.yml
More file actions
54 lines (44 loc) · 1.36 KB
/
appveyor.yml
File metadata and controls
54 lines (44 loc) · 1.36 KB
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
branches:
only:
- master
- dev
version: '0.1.0.{build}'
environment:
matrix:
- PYTHON: "C:\\Miniconda3-x64\\Scripts\\activate.bat"
PYTHON_VERSION: 3.7
- PYTHON: "C:\\Miniconda3-x64\\Scripts\\activate.bat"
PYTHON_VERSION: 3.8
platform:
- x64
configuration:
- Release
install:
- cmd: set PATH="C:\\Miniconda3-x64\\Scripts\\";"C:\\Miniconda3-x64\\";%PATH%
- cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda update -q conda
- cmd: conda config --set ssl_verify false
- cmd: conda env create -f environment.yml -n test_env python=$env:PYTHON_VERSION
- cmd: activate test_env
- cmd: conda install pytest-cov
# https://pythonhosted.org/CodeChat/appveyor.yml.html
- cmd: python -m pip install -U pip
- cmd: python -m easy_install -U setuptools
build_script:
- cmd: python setup.py install
test_script:
- cmd: pytest libpyhat/
before_deploy:
- cmd: activate base
deploy_script:
ps:
if (-not ($env:APPVEYOR_PULL_REQUEST_NUMBER)) {
if ($env:APPVEYOR_REPO_BRANCH -eq "master") {
conda install conda-build anaconda-client;
conda config --set anaconda_upload yes;
conda build -c conda-forge -c usgs-astrogeology --python $env:PYTHON_VERSION --token %CONDA_UPLOAD_TOKEN% RECIPE_PATH recipe;
conda build purge;
};
};
on_success:
- ps: echo "Success!"