.appveyor.yml 1.37 KB
Newer Older
1 2 3

environment:
  matrix:
4 5
#  - BUILD: 'Debug'
#    CONFIG: debug
Daniel Agar's avatar
Daniel Agar committed
6 7
  - BUILD: 'Release'
    CONFIG: installer
8 9 10 11

install:
  - git submodule update --init --recursive
  - call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
Daniel Agar's avatar
Daniel Agar committed
12
  - set PATH=C:\Qt\Tools\QtCreator\bin;C:\Qt\5.5\msvc2013\bin;%PATH%
13
  - mkdir %LOCALAPPDATA%\QtProject && copy test\qtlogging.ini %LOCALAPPDATA%\QtProject\
14
  - if "%CONFIG%" EQU "installer" ( cinst nsis -y -installArgs /D="%programfiles(x86)%\NSIS" )
15 16

build_script:
17
  - C:\Qt\5.5\msvc2013\bin\qmake -r CONFIG-=debug_and_release CONFIG+=%CONFIG% CONFIG+=WarningsAsErrorsOn qgroundcontrol.pro
18
  - jom
19 20

test_script:
Daniel Agar's avatar
Daniel Agar committed
21
  - if "%CONFIG%" EQU "debug" ( debug\qgroundcontrol --unittest )
Daniel Agar's avatar
Daniel Agar committed
22 23

after_build:
24
  - if "%CONFIG%" EQU "installer" ( appveyor PushArtifact C:\projects\qgroundcontrol\release\qgroundcontrol.exe )
Daniel Agar's avatar
Daniel Agar committed
25 26 27 28

deploy:
  - provider: S3
    name: qgroundcontrol-s3
29 30
    access_key_id:
      secure: IGAojLMqokL+76DbdulmWDA3MTsxEBBi3ReVVSqTy9c=
Daniel Agar's avatar
Daniel Agar committed
31 32
    secret_access_key:
      secure: RiYqaR+3T2PMNz2j5ur8LCA6H/Zfd4jTX33CZE5iBxm+zaz4QLs25p0B7prpaoNN
33
    bucket: qgroundcontrol
Daniel Agar's avatar
Daniel Agar committed
34
    set_public: true
35 36 37 38
    folder: $(APPVEYOR_REPO_BRANCH)
    artifcat: 'release\qgroundcontrol.exe'
    on:
      CONFIG: installer
Daniel Agar's avatar
Daniel Agar committed
39
  - provider: GitHub
40
    artifact: 'release\qgroundcontrol.exe'
Daniel Agar's avatar
Daniel Agar committed
41 42 43
    draft: false
    prerelease: false
    on:
44
      CONFIG: installer
Daniel Agar's avatar
Daniel Agar committed
45
      appveyor_repo_tag: true