[go: up one dir, main page]

File: appveyor.yml

package info (click to toggle)
sigil 1.4.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,056 kB
  • sloc: cpp: 65,166; ansic: 31,716; python: 10,991; javascript: 193; sh: 39; makefile: 17
file content (133 lines) | stat: -rw-r--r-- 4,291 bytes parent folder | download
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '1.0.0-{build}'

branches:
  only:
  - master
  - appearance
  - /\d+\.\d+\.\d+(-\d+)?/
  
image:
- Visual Studio 2019
- Ubuntu1804

configuration: Release

platform:
- x64

init:
  - cmd: set /p RedistVersion=<"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\Microsoft.VCRedistVersion.default.txt"
  - ps: $commit = $env:APPVEYOR_REPO_COMMIT.SubString(0,7)
  - ps: $timestamp = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP.SubString(0,10)
  - ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:APPVEYOR_REPO_BRANCH, $commit, $timestamp)

clone_script:
- ps: >-
    if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
      git clone -q --depth=1 --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
      git checkout -qf $env:APPVEYOR_REPO_COMMIT
    } else {
      git clone -q --depth=1 https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
      git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
      git checkout -qf FETCH_HEAD
    }
    
    Set-Location $env:APPVEYOR_BUILD_FOLDER

install:
  - cmd: choco install ninja

environment:
  global:
      INNO: C:\Program Files (x86)\Inno Setup 6
      REDIST: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\%RedistVersion%\vcredist_%PLATFORM%.exe
      DOWNLOAD: https://github.com/dougmassay/win-qtwebkit-5.212/releases/download/v5.212-1/MyQt%PLATFORM%_5.12.9_VS2017_WE.7z
      GDRIVE: https://github.com/dougmassay/win-qtwebkit-5.212/releases/download/v5.212-1/gdrive-windows-x64.exe
      GDRIVE_REFRESH_TOKEN:
        secure: +J2q/4lkiBXik5Ttvt06vpNiWBjNIXx+jFnYw1rOR9sLkyksyXGj+NeNKQB8kPwE
      GDRIVE_DIR:
        secure: e/trZFJnPzo9saqwWWn6+E3ZPoItqflSviT92eeH3Qk76GuEHrPk9DrcG1bh3SNX
      QT: C:\MyQtx64_WE\Qt5.12.9
      PYTHON: C:\Python38-x64
      CMAKE64BIT: -DWIN_INSTALLER_USE_64BIT_CRT=1

only_commits:
  files:
    - CMakeLists.txt
    - appveyor.yml
    - installer/Sigil.iss
    - src/
    - ci_scripts/
    - internal/
    - cmake_extras/
    - 3rdparty/

before_build:
- mkdir build
- cmd: |-
    rmdir c:\cygwin /s /q
    rmdir c:\Python35 /s /q
    rmdir c:\Python35-x64 /s /q
    cp '%REDIST%' installer/
    cd ..\..
    curl.exe -L -o webkit.7z %DOWNLOAD%
    7z x webkit.7z -y
    set PATH=%PYTHON%;%PYTHON%\Scripts;%QT%\bin;%INNO%;%PATH%
    echo 'PATH = %PATH%'
    python -m pip install --upgrade pip
    pip3.8 install six==1.15.0
    pip3.8 install html5lib==1.1
    pip3.8 install regex==2020.6.8
    pip3.8 install css-parser==1.0.4
    pip3.8 install cssselect==1.1.0
    pip3.8 install urllib3==1.25.9
    pip3.8 install certifi==2020.6.20
    pip3.8 install dulwich==0.20.5 --global-option="--pure"
    pip3.8 install chardet==3.0.4
    pip3.8 install pillow==7.1.2
    pip3.8 install PyQt5==5.12.3 PyQt5-sip==4.19.19
    pip3.8 install lxml==4.5.1
    cd %APPVEYOR_BUILD_FOLDER%\build
    curl.exe -L -o gdrive.exe %GDRIVE%
    %APPVEYOR_BUILD_FOLDER%\build\gdrive.exe version
    call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% -vcvars_ver=14.1
    echo 'LIB = %LIB%'
    echo 'LIBPATH = %LIBPATH%'
    echo 'INCLUDE = %INCLUDE%'
    echo 'CL = %CL%'
    cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%configuration% -DUSE_ALT_ICONS=1 -DQt5_DIR=%QT%\lib\cmake\Qt5 %CMAKE64BIT%

- sh: |-
    sudo apt-get update && apt-get install -y pkg-config cmake cmake-data zlib1g-dev build-essential ninja
    sudo apt-get install -y qtbase5-dev qttools5-dev qttools5-dev-tools qtwebengine5-dev qt5-default qtchooser
    sudo apt-get install -y libhunspell-dev libminizip-dev libpcre3-dev
    sudo apt-get install -y python3-dev python3-pip python3-lxml python3-six
    cd $APPVEYOR_BUILD_FOLDER/build
    which qmake
    qmake -v
    python3 --version
    gcc --version
    cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DUSE_SYSTEM_LIBS=1 -DSYSTEM_LIBS_REQUIRED=1

    
build_script:
- cmd: |-
    ninja -j4
- sh: |-
    make -j4
 

after_build:
- cmd: |-
    ninja -j4 makeinstaller

deploy_script:
- ps: >-
    if($isWindows -and (-not $env:APPVEYOR_PULL_REQUEST_NUMBER)) {
        python --version
        python ..\ci_scripts\gddeploy.py
    }

#artifacts:
#    path: build\installer\*.exe