os: Visual Studio 2015 version: "{build}-{branch}" configuration: Release cache: - node_modules - bower_components - C:\projects\boost_1_61_0\boost - C:\projects\boost_1_61_0\stage\lib - C:\Program Files (x86)\Inno Setup 5 environment: access_token: secure: yoODjVeYw01Vg2idJgxMBOkyII/TO3yb6OZfxtzBh/F5z3ZTDW6CHBOiH4AyiX7Y install: - npm install - .\node_modules\.bin\bower install - ps: .\scripts\appveyor\install_boost.ps1 before_build: - cd %APPVEYOR_BUILD_FOLDER% - ps: mkdir build - cd build - cmake .. -G "Visual Studio 14 2015" -DBOOST_ROOT="C:\projects\boost_1_61_0" build: verbosity: minimal project: 'c:\projects\loot\build\LOOT.sln' test_script: - cd %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION% - tests.exe --gtest_output=xml:tests.xml - api-tests.exe --gtest_output=xml:api-tests.xml after_test: - cd %APPVEYOR_BUILD_FOLDER% - node scripts\potomo.js - node scripts\archive.js # AppVeyor checks out a specific commit, but that means the archive script # can't tell which branch it's on, so rename the 7z archives. - ps: $env:GIT_DESCRIBE = ((git describe --tags --long) | Out-String) -replace "`n|`r", "" - ps: scripts\appveyor\build_installer.ps1 artifacts: - path: build\loot_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z name: LOOT - path: build\loot-api_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z name: API - path: build\metadata-validator_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z name: metadata-validator - path: build\LOOT Installer.exe name: installer deploy: - provider: BinTray username: wrinklyninja api_key: secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc subject: wrinklyninja repo: loot package: LOOT version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH) publish: true artifact: LOOT - provider: BinTray username: wrinklyninja api_key: secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc subject: wrinklyninja repo: loot package: LOOT_API version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH) publish: true artifact: API - provider: BinTray username: wrinklyninja api_key: secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc subject: wrinklyninja repo: loot package: metadata-validator version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH) publish: true artifact: metadata-validator - provider: GitHub tag: $(APPVEYOR_REPO_TAG_NAME) release: LOOT v$(APPVEYOR_REPO_TAG_NAME) description: | Requires Windows 7 or later, and [7-Zip](http://www.7-zip.org/) to extract the archives. *Note: The `metadata-validator.tar.xz` file below contains a Linux binary. It won't work on Windows computers.* auth_token: secure: SecSfg5+S0OUzmC+kKixshqNDrRDj2uRYx58AAiZ1IDYTvQbPGRqEYCWZ9jbPd3h artifact: LOOT,API,metadata-validator,installer draft: true on: branch: master appveyor_repo_tag: true on_success: - ps: scripts\appveyor\deploy_docs.ps1 on_finish: - ps: (New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", "$($env:APPVEYOR_BUILD_FOLDER)\build\$($env:CONFIGURATION)\tests.xml") - ps: (New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", "$($env:APPVEYOR_BUILD_FOLDER)\build\$($env:CONFIGURATION)\api-tests.xml")