forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (44 loc) · 1.58 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
45
46
47
48
49
50
services:
- mysql
environment:
matrix:
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
CONDA_PY: "36"
CONDA_BUILD: "TRUE"
SPLIT_RUN: "FALSE"
PMG_MAPI_KEY:
secure: XIbk1W27nucVUHTVpIL2B+FodL9w2Efyw5PqTdnfbHg=
PYPIPWD:
secure: QPpXonUAeLJ8p3f936jh7g==
install:
# Add the paths
- 'set PATH=%PYTHON%;%PYTHON%\Library\bin;%PYTHON%\Scripts;%PATH%'
# Check that we have the expected version and architecture for Python
# - 'python --version'
# - 'python -c "import struct; print(struct.calcsize(''P'') * 8)"'
# Install the build dependencies of the project via conda and pip
- 'conda install --yes --quiet numpy scipy matplotlib setuptools wheel pip'
- 'conda install --yes --quiet --channel matsci spglib netcdf4 h5py'
- 'conda update --yes --all'
- "pip install -r requirements.txt"
- "pip install pybtex nose coverage ase coveralls fdint ase twine networkx"
# Note that pyhull is excluded because it does not work on Windows.
# Run develop to install in dev mode and build C extension.
- "python setup.py develop"
build: false
test_script:
- IF NOT "%APPVEYOR_REPO_BRANCH%" == "stable" (nosetests)
notifications:
- provider: Email
to:
- shyuep@gmail.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true
deploy_script:
- IF "%APPVEYOR_REPO_BRANCH%" == "stable" (python setup.py sdist bdist_wheel)
- IF "%APPVEYOR_REPO_BRANCH%" == "stable" (twine upload --username Shyue.Ping.Ong --password %PYPIPWD% dist/*.whl)