forked from mypaint/mypaint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
96 lines (76 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# yml file for Appveyor
# Based of Reference at: https://www.appveyor.com/docs/appveyor-yml/
#
# Notes:
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 2.1.0-alpha+{branch}.{build}
# Do not build on tags (GitHub and BitBucket)
skip_tags: false
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2019
# set clone depth
clone_depth: 1
matrix:
fast_finish: true
environment:
matrix:
- MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
- MSYS2_ARCH: i686
MSYSTEM: MINGW32
for:
-
matrix:
except:
- MSYS2_ARCH: x86_64
# Only build the 32bit if the extensions have been modified
# TODO: Override so that tags are always built on both archs
only_commits:
files:
- lib/*.cpp
- lib/*.hpp
- lib/**/*.cpp
- lib/**/*.hpp
- lib/**/*.i
-
skip_commits:
files:
- .travis.yml
- '**/*.md'
- '**/*.txt'
- flatpak/**
- doc/**
#---------------------------------#
# Run Msys2-build commands #
#---------------------------------#
init:
- PATH C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;C:\msys64\bin;%PATH%
install:
# Upgrade msys2 environment
- pacman --noconfirm -Syuu
- pacman --noconfirm -Suu
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh installdeps
build_script:
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh build
test_script:
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh doctest
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh tests
after_test:
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh clean
- bash %APPVEYOR_BUILD_FOLDER%\windows\msys2-build.sh bundle
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: 'out\pkgs\*'
- path: 'out\bundles\*'