Browse Source

Fix line endings in appveyor.yml

build-appveyor
Aqua-sama 2 months ago
parent
commit
6d6bee30e4
Signed by: Aqua-sama <aqua@iserlohn-fortress.net> GPG Key ID: 5378B8349C1D5ADA
2 changed files with 70 additions and 64 deletions
  1. 3
    0
      .git-commit-template
  2. 67
    64
      windows/appveyor/appveyor.yml

+ 3
- 0
.git-commit-template View File

@@ -17,3 +17,6 @@
17 17
 #
18 18
 # --[ Add attribution if patch was contributed ]-----------------------|
19 19
 #SUBMITTED-BY: <name here>
20
+#
21
+# --[ Tags ]-----------------------------------------------------------|
22
+# build-appveyor: this build is a stable Windows build

+ 67
- 64
windows/appveyor/appveyor.yml View File

@@ -1,64 +1,67 @@
1
-# version format
2
-version: '{branch}-{build}'
3
-
4
-# branches to build
5
-branches:
6
-  only:
7
-  - master
8
-
9
-# only build commits with a particular message
10
-only_commits:
11
-  message: /build-appveyor/
12
-  author: aqua@iserlohn-fortress.net
13
-
14
-# --- environment configuration ---
15
-
16
-image: Visual Studio 2017
17
-
18
-# scripts that are called at very beginning, before repo cloning
19
-init:
20
-  - git config --global core.autocrlf input
21
-
22
-# We use commit count as a version, so we can't do a shallow clone
23
-#shallow_clone: true
24
-clone_folder: C:\projects\smolbote.git
25
-
26
-environment:
27
-  source_dir: C:\projects\smolbote.git
28
-  install_dir: C:\projects\smolbote.install
29
-  matrix:
30
-  - arch: x64
31
-    compiler: msvc2017
32
-    generator: '"Visual Studio 15 2017 Win64"'
33
-
34
-# --- build ---
35
-# script to run after repository is cloned
36
-install:
37
-- cmd: if %arch%==x86 (set QT_ROOT=C:\Qt\5.11\%compiler%) else (set QT_ROOT=C:\Qt\5.11\%compiler%_64)
38
-- cmd: set BOOST_ROOT=C:\Libraries\boost_1_67_0
39
-- cmd: cd %source_dir%
40
-- cmd: git submodule init
41
-- cmd: git submodule update 3rd-party/SingleApplication/SingleApplication.git
42
-
43
-# build script
44
-build_script:
45
-- cmd: echo Building on %arch% with %compiler%
46
-- cmd: cmake  -G %generator% -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%install_dir% -DCMAKE_PREFIX_PATH=%QT_ROOT%;%BOOST_ROOT% -DBoost_USE_STATIC_LIBS=On %source_dir%
47
-- cmd: cmake --build . --target poi --config Release
48
-- cmd: cmake --build . --target install --config Release
49
-- cmd: cd %install_dir%
50
-- cmd: call %QT_ROOT%\bin\windeployqt.exe bin\poi.exe
51
-- cmd: 7z a C:\projects\build.7z %install_dir%
52
-
53
-artifacts:
54
-- path: build.7z
55
-  name: release
56
-
57
-# --- notifications ---
58
-notifications:
59
-  - provider: Email
60
-    to:
61
-      - aqua@iserlohn-fortress.net
62
-    subject: 'smolbote: build {{status}}'
63
-    message: 'version {{branch}}:{{commitId}}'
64
-    on_build_status_changed: true
1
+# version format
2
+version: '{branch}-{build}'
3
+
4
+# branches to build
5
+branches:
6
+  only:
7
+  - master
8
+
9
+# only build commits with a particular message
10
+only_commits:
11
+  message: /build-appveyor/
12
+  author: aqua@iserlohn-fortress.net
13
+
14
+# --- environment configuration ---
15
+
16
+image: Visual Studio 2017
17
+
18
+# scripts that are called at very beginning, before repo cloning
19
+init:
20
+  - git config --global core.autocrlf input
21
+
22
+# We use commit count as a version, so we can't do a shallow clone
23
+#shallow_clone: true
24
+clone_folder: C:\projects\smolbote.git
25
+
26
+environment:
27
+  source_dir: C:\projects\smolbote.git
28
+  install_dir: C:\projects\smolbote.install
29
+  matrix:
30
+  - arch: x64
31
+    compiler: msvc2017
32
+    generator: '"Visual Studio 15 2017 Win64"'
33
+
34
+# --- build ---
35
+# script to run after repository is cloned
36
+install:
37
+- cmd: if %arch%==x86 (set QT_ROOT=C:\Qt\5.11\%compiler%) else (set QT_ROOT=C:\Qt\5.11\%compiler%_64)
38
+- cmd: set BOOST_ROOT=C:\Libraries\boost_1_67_0
39
+- cmd: cd %source_dir%
40
+- cmd: git submodule init
41
+- cmd: git submodule update 3rd-party/SingleApplication/SingleApplication.git
42
+
43
+# build script
44
+build_script:
45
+- cmd: echo Building on %arch% with %compiler%
46
+- cmd: cmake  -G %generator% -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%install_dir% -DCMAKE_PREFIX_PATH=%QT_ROOT%;%BOOST_ROOT% -DBoost_USE_STATIC_LIBS=On %source_dir%
47
+- cmd: cmake --build . --target poi --config Release
48
+- cmd: cmake --build . --target install --config Release
49
+- cmd: cd %install_dir%
50
+- cmd: call %QT_ROOT%\bin\windeployqt.exe bin\poi.exe
51
+- cmd: 7z a %source_dir%\build.7z %install_dir%
52
+
53
+artifacts:
54
+- path: build.7z
55
+  name: release
56
+
57
+# --- notifications ---
58
+notifications:
59
+  - provider: Email
60
+    to:
61
+      - aqua@iserlohn-fortress.net
62
+    subject: 'smolbote: build {{status}}'
63
+    message: 'version {{branch}}:{{commitId}}\n
64
+    Artifacts: {{#artifacts}}
65
+    - {{name}} {{permalink}} \n
66
+    {{/artifacts}}'
67
+    on_build_status_changed: true

Loading…
Cancel
Save