2017-12-06 5 views
0

私はこの非常に単純なスクリプトを使って、テキストファイルを作成してそれを読み取ろうとしています。私はそれを実行すると単純なappveyorスクリプトの使用上の問題

version: 1.0.{build}-{branch} 

shallow_clone: true 

environment: 
matrix: 
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 
    TOOLSET: msvc-14.1 
    ARCH: x86_64 
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 
    TOOLSET: msvc-14.1 
    ARCH: x86 

install: 
- if %ARCH% == x86 (set TRIPLET=x86-windows) else (set TRIPLET=x64-windows) 
- if %ARCH% == x86 (set AM=32) else (set AM=64) 
- git clone -b master --depth 1 https://github.com/boostorg/boost.git boost-root 
- cd boost-root 

build: off 

test_script: 
- set PATH=%ADDPATH%%PATH% 
- |- 
    set VCPKG=%APPVEYOR_BUILD_FOLDER%\..\vcpkg\installed\%TRIPLET% 
    set "CHUNK=^<include^>%VCPKG%\include ^<search^>%VCPKG%\lib" 
    echo using zlib : : %CHUNK% ; > config.jam 
    echo using libjpeg : : %CHUNK% ; >> config.jam 
    echo using libpng : : ^<name^>libpng16 %CHUNK% ; >> config.jam 
    echo using libtiff : : %CHUNK% ; >> config.jam 
    more config.jam 

私は次のエラーを取得する:

Cannot access file C:\projects\gil\boost-root\config.jam 
Command exited with code 1 

は私が欠けていることを明らかに何か問題はありますか?

答えて

0

私はset "CHUNK=^<include^>%VCPKG%\include ^<search^>%VCPKG%\lib"が環境変数で何かを壊すと思います。 set CHUNK="^<include^>%VCPKG%\include ^<search^>%VCPKG%\lib"のように、最初に"=の後に移動してみてください。

+0

これは正しくはありません。理由は次のとおりです。https://pastebin.com/raw/7HBY3ppW – chhenning