2017-12-06 12 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