-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
50 lines (40 loc) · 1.51 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
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 2.1.1.build{build}
environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
ARCH: "32"
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda-x64
ARCH: "64"
init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"
install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update --quiet conda
- conda info --all
- conda create -n _dtocean_app python=%PYTHON_VERSION% pip pyyaml
- activate _dtocean_app
- copy .condarc %CONDA_PREFIX%
- conda install "polite>=0.10.1,<1" "dtocean-core>=3.0.2,<4" "dtocean-qt>=0.10.1,<1" "dtocean-hydrodynamics>=3.0.0,<4" "dtocean-electrical>=2.1.0,<3"
- conda install --file requirements-conda-dev.txt
- python setup.py bootstrap
- pip install -e .
- conda install mock "pytest>=3.6,<4" pytest-cov pytest-mock pytest-qt
build: off
test_script:
- python -m pytest -v --cov dtocean_app tests
after_test:
- pip install codecov
- codecov
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))