]> git.lizzy.rs Git - sqlite3-cmake.git/blob - appveyor.yml
auto deploy to Github Releases
[sqlite3-cmake.git] / appveyor.yml
1 environment:
2   P: "c:/projects/libs"
3   ACCOUNT:
4       secure: F8Xu4syZJRRLmTnPDOUjr5bG7Lk6UburldIUuxZ/OJQ=
5   githubtk:
6       secure: qrVq5CxwKaOg2SohTmLQL6H6llxcxg1IJbF4r7Cx0Q7xxOsCPc49l2DzmlQIkui8
7
8 # branches to build
9 branches:
10   # whitelist
11   only:
12     - master
13
14 # Operating system (build VM template)
15 os: Visual Studio 2015
16
17 # scripts that are called at very beginning, before repo cloning
18 init:
19   - git config --global core.autocrlf input
20
21
22 # clone directory
23 clone_folder: c:\projects\sqlite
24
25 platform: x64
26 configuration: Release
27
28 install:
29   # by default, all script lines are interpreted as batch
30
31 build:
32   project: INSTALL.vcxproj      # path to Visual Studio solution or project
33
34 # scripts to run before build
35 before_build:
36   - echo Running cmake...
37   - cd c:\projects\sqlite
38   - cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%P%
39
40 # scripts to run after build
41 after_build:
42   - cd %P%
43   - 7z a c:\projects\sqlite\sqlite.zip * -tzip
44   - cd c:\projects\sqlite
45
46 artifacts:
47   - path: sqlite.zip
48     name: sqlite.zip
49
50 #@deploy_script:
51 #  - cd c:\projects\sqlite
52 #  - curl -T sqlite.zip --user %ACCOUNT% https://webdav.yandex.ru/libs/sqlite.zip
53
54 deploy:
55   release: sqlite-v$(appveyor_build_version)
56   description: 'Automatic release by Appveyor.com'
57   provider: GitHub
58   auth_token:
59     secure: qrVq5CxwKaOg2SohTmLQL6H6llxcxg1IJbF4r7Cx0Q7xxOsCPc49l2DzmlQIkui8
60   artifact: /.*\.zip/            # upload all NuGet packages to release assets
61   draft: false
62   prerelease: false
63   on:
64     branch: master                 # release from master branch only
65     appveyor_repo_tag: true        # deploy on tag push only