-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
68 lines (52 loc) · 1.87 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
#---------------------------------#
# Info of configure the PM-plugin #
#---------------------------------#
# @author : PresentKim
# @version : 1.1.0
# @url : https://github.com/organization/ExamplePlugin-AppVeyor/blob/master/appveyor.yml
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: "#{build}"
# branches to build
branches:
# whitelist
only:
- master
# Skipping commits with particular message or from specific user
skip_commits:
files:
- README.md
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Ubuntu1804
# set clone depth
clone_depth: 5
# environment variables
environment:
APPVEYOR_BUILD_URL: "https://ci.appveyor.com/project/${APPVEYOR_ACCOUNT_NAME}/${APPVEYOR_PROJECT_NAME}/builds/${APPVEYOR_BUILD_ID}"
BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/organization/ExamplePlugin-AppVeyor/master/build.php"
# build cache to preserve files/folders between builds
cache:
- '$HOME/cache/' # my cache
# scripts that are called at very beginning, before repo cloning
init:
- mkdir $HOME/cache/
# scripts that run after cloning repository
install:
- wget -nc -P $HOME/cache/ https://jenkins.pmmp.io/job/PHP-7.3-Linux-x86_64/lastSuccessfulBuild/artifact/PHP_Linux-x86_64.tar.gz
- tar -C ../ -xvf $HOME/cache/PHP_Linux-x86_64.tar.gz
- wget --cache=off --cookies=off ${BUILD_SCRIPT_URL}
# to run your custom scripts instead of automatic MSBuild
build_script:
- ../bin/php7/bin/php ./build.php --buildurl=${APPVEYOR_BUILD_URL} --buildnum=${APPVEYOR_BUILD_NUMBER}
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: "releases/*.phar"