summaryrefslogblamecommitdiffstats
path: root/appveyor.yml
blob: e4e1045def4f4b6f61eb42d932bee66046225802 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
               
               
 

                    
 



                                                 

                      
         
       


              

        
                                           



               
                                                                                                 
         
 



                          



                                                                             
                                              


                                                                                                 
                                                                    
 


                                                                          
                                               
 


                                                                                   
 

                                             
 






                            
 







                                                                            
                             


                  
# shallow clone
clone_depth: 10

# don't build on tag
skip_tags: true

cache:
  - C:\ProgramData\chocolatey\bin -> appveyor.yml
  - C:\ProgramData\chocolatey\lib -> appveyor.yml

os: Visual Studio 2015

platform:
  - x64

configuration:
  - Release

install:
  - git submodule update --init --recursive

before_build:
  - mkdir build
  - cd build
  - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
  - cd ..

build:
  project: build/citra.sln
  parallel: true

after_build:
  - ps: |
        $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
        $GITREV = $(git show -s --format='%h')
        $GIT_LONG_HASH = $(git rev-parse HEAD)
        # Where are these spaces coming from? Regardless, let's remove them
        $MSVC_BUILD_NAME = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", ""
        $MSVC_BUILD_PDB = "citra-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace " ", ""
        $BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""

        # set the build names as env vars so the artifacts can upload them
        $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME
        $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB
        $env:BINTRAY_VERSION = $BINTRAY_VERSION

        7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
        rm .\build\bin\release\*.pdb
        7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md

test_script:
  - cd build && ctest -VV -C Release && cd ..

artifacts:
  - path: $(MSVC_BUILD_NAME)
    name: msvcbuild
    type: zip
  - path: $(MSVC_BUILD_PDB)
    name: msvcdebug
    type: zip

deploy:
- provider: BinTray
  username: citra-emu
  api_key:
    secure: qaZZfXp5Vv9xw5EmCxKLhGnNYhiNMDCdP84l0+h6HetfmvFlvHxyohWEVokLjl7d
  subject: citra-emu
  repo: citra
  package: nightly
  version: $(BINTRAY_VERSION)
  publish: true
  on:
    branch: master