job-windows.yml 994 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#################################################
# Visual Studio 2015
#################################################

job-windows-vs2015:

  stage: build

  tags: [ "windows" ]

  script:
    - echo %Qt5_DIR%
    - echo %PATH%
    - if DEFINED WINDOWS_SIGNING_DIRECTORY ( xcopy /I /Y "%WINDOWS_SIGNING_DIRECTORY%" "cmake_builder\\linphone_package\\sign" )
    - python prepare.py -G "Visual Studio 14 2015" --package %DEFAULT_WINDOWS_CMAKE_OPTIONS% %CMAKE_OPTIONS%
    - cmake --build WORK/desktop/cmake --config Release -- /maxcpucount

  artifacts:
    paths:
20
      - WORK/desktop/Build/linphone_package/%PACKAGE_NAME%-*-win32.exe
21
    expire_in: 1 week
22 23 24 25 26 27 28 29 30 31 32 33 34 35

#################################################
# Deploy
#################################################

job-windows-deploy:

  stage: deploy
  tags: [ "deploy" ]

  dependencies:
    - job-windows-vs2015

  script:
36
    - scp WORK/desktop/Build/linphone_package/$PACKAGE_NAME-*-win32.exe $DEPLOY_SERVER:$WINDOWS_UPLOAD_DIRECTORY/