forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
56 lines (41 loc) · 2.03 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
51
52
53
54
55
56
skip_commits:
message: /^Merge pull request /
environment:
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
matrix:
- PLATFORM: "64"
artifacts:
# Store built conda packages as artifacts
- path: 'conda_packages\*.bz2'
platform:
- x64
install:
# If there is a newer build queued for the same PR, cancel this one.
- cmd: |
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
del ff_ci_pr_build.py
# Find the recipes from master in this PR and remove them.
- cmd: echo Finding recipes merged in master and removing them.
- cmd: cd recipes
- cmd: |
for /f "tokens=*" %%a in ('git ls-tree --name-only master -- .') do rmdir /s /q %%a && echo Removing recipe: %%a
- cmd: cd ..
# Remove cygwin (and therefore the git that comes with it).
- cmd: rmdir C:\cygwin /s /q
# Use the pre-installed Miniconda for the desired arch
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda.exe config --add channels conda-forge
- cmd: conda.exe config --set show_channel_urls true
- cmd: appveyor-retry conda.exe update --yes --quiet conda
- cmd: appveyor-retry conda.exe install --yes --quiet conda-forge-pinning conda-forge-ci-setup=1.* networkx conda-build>=3.16
- cmd: appveyor-retry run_conda_forge_build_setup
# Skip .NET project specific build phase.
build: off
test_script:
- python .ci_support\build_all.py recipes --arch %PLATFORM%
# copy any newly created conda packages into the conda_packages dir
- cmd: mkdir conda_packages
# Uncomment the following two lines to make any conda packages created
# available as build artifacts in AppVeyor
#- cmd: 'copy /Y C:\Miniconda-x64\conda-bld\win-64\*.bz2 conda_packages || cmd /c "exit /b 0"'