.appveyor.yml 1.86 KB
Newer Older
Daniel Agar's avatar
Daniel Agar committed
1 2 3 4
version: '{branch}-{build}'

build:
  verbosity: minimal
5 6 7

environment:
  matrix:
8 9
#  - BUILD: 'Debug'
#    CONFIG: debug
10
#    SHADOW_BUILD_DIR: $(APPVEYOR_BUILD_FOLDER)\build_windows_debug
Daniel Agar's avatar
Daniel Agar committed
11 12
  - BUILD: 'Release'
    CONFIG: installer
13
    SHADOW_BUILD_DIR: $(APPVEYOR_BUILD_FOLDER)\build_windows_install
14 15 16 17

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
18
  - set PATH=C:\Qt\Tools\QtCreator\bin;C:\Qt\5.5\msvc2013\bin;%PATH%
19
  - mkdir %LOCALAPPDATA%\QtProject && copy test\qtlogging.ini %LOCALAPPDATA%\QtProject\
20 21
  - ps: Start-FileDownload https://s3-us-west-2.amazonaws.com/qgroundcontrol/dependencies/nsis-3.0rc1-setup.exe -FileName nsis.exe
  - nsis.exe /S
22 23

build_script:
24 25
  - mkdir %SHADOW_BUILD_DIR% && cd %SHADOW_BUILD_DIR% && C:\Qt\5.5\msvc2013\bin\qmake -r CONFIG-=debug_and_release CONFIG+=%CONFIG% CONFIG+=WarningsAsErrorsOn %APPVEYOR_BUILD_FOLDER%\qgroundcontrol.pro
  - cd %SHADOW_BUILD_DIR% && jom
26
  - if "%CONFIG%" EQU "installer" ( copy %SHADOW_BUILD_DIR%\release\qgroundcontrol-installer.exe %APPVEYOR_BUILD_FOLDER%\qgroundcontrol-installer.exe )
27 28

test_script:
29
  - if "%CONFIG%" EQU "debug" ( %SHADOW_BUILD_DIR%\debug\qgroundcontrol --unittest )
Daniel Agar's avatar
Daniel Agar committed
30

Daniel Agar's avatar
Daniel Agar committed
31
artifacts:
32
  - path: qgroundcontrol-installer.exe
Daniel Agar's avatar
Daniel Agar committed
33
    name: qgcinstaller
Daniel Agar's avatar
Daniel Agar committed
34 35 36

deploy:
  - provider: S3
37 38
    access_key_id:
      secure: IGAojLMqokL+76DbdulmWDA3MTsxEBBi3ReVVSqTy9c=
Daniel Agar's avatar
Daniel Agar committed
39 40
    secret_access_key:
      secure: RiYqaR+3T2PMNz2j5ur8LCA6H/Zfd4jTX33CZE5iBxm+zaz4QLs25p0B7prpaoNN
41
    bucket: qgroundcontrol
Daniel Agar's avatar
Daniel Agar committed
42
    set_public: true
43
    folder: $(APPVEYOR_REPO_BRANCH)
Daniel Agar's avatar
Daniel Agar committed
44
    artifact: qgcinstaller
45 46
    on:
      CONFIG: installer
Daniel Agar's avatar
Daniel Agar committed
47
  - provider: GitHub
48 49
    auth_token:
      secure: dzWLqd0eTKjrAWC5LgqVnwLemmrNdddGA2ZZn/OthAP37mwCLkP2C1zil7ivmEE8
Daniel Agar's avatar
Daniel Agar committed
50
    artifact: qgcinstaller
Daniel Agar's avatar
Daniel Agar committed
51 52 53
    draft: false
    prerelease: false
    on:
54
      CONFIG: installer
Daniel Agar's avatar
Daniel Agar committed
55
      appveyor_repo_tag: true