forked from DOI-USGS/usgscsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
53 lines (44 loc) · 1.39 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
version: '0.1.{build}'
image: Visual Studio 2017
platform:
- x64
configuration:
- Release
install:
- git submodule update --init --recursive
- call C:\\Miniconda36-x64\Scripts\activate.bat
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build anaconda-client
- conda config --add channels usgs-astrogeology
- conda install -c conda-forge ale
before_build:
- mkdir build
- cd build
build_script:
- cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON -DUSGSCSM_BUILD_TESTS=OFF ..
- cmake --build . --target ALL_BUILD --config Release
artifacts:
- path: build\Release\usgscsm.dll
name: usgscsm.dll
- path: build\ale\Release\ale.dll
name: ale.dll
- path: build\Release\usgscsm_cam_test.exe
name: usgscsm_cam_test
on_success:
- cd ../
- conda build -q recipe/
- ps:
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq "") {
$tar_glob = conda build recipe --output;
Write-Host "tar_glob $tar_glob";
if ($env:APPVEYOR_REPO_BRANCH -eq "dev") {
$anaconda_label = "dev"
} else {
$anaconda_label = "main"
};
Write-Host "anaconda_label $anaconda_label";
$parameters = '-t', "$env:CONDA_UPLOAD_TOKEN", 'upload', "$tar_glob", '-l',
"$anaconda_label", '--force', '--no-progress';
& cmd /c 'anaconda 2>&1' $parameters;
};