【问题标题】:How to determine the configuration during a AppVeyor/Travis CI build?如何在 AppVeyor/Travis CI 构建期间确定配置?
【发布时间】:2018-04-09 16:25:23
【问题描述】:

如何在 AppVeyor/Travis CI 构建期间确定配置?

我为发布和调试构建了我的项目,并且在每次构建时我都想运行我的 test.exe,它将位于 Release 文件夹中用于发布构建和 Debug 文件夹中用于调试构建

这两种尝试都不起作用。

如果能够引用构建产品的放置位置,那就太好了。

AppVeyor.yml

test_script:
  - cd Build
  - cd $env:CONFIGURATION
  - UtilsTests.exe

特拉维斯.yml

matrix:
  include:
    - os: osx
      osx_image: xcode8.3
      compiler: clang
      script: 
        - brew update          
        - cmake . -G Xcode
        - xcodebuild
        - ./UtilsTests

【问题讨论】:

    标签: travis-ci appveyor


    【解决方案1】:

    正确的cd 命令应该是:

    - cd %CONFIGURATION%
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-25
      • 1970-01-01
      • 2018-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多