forked from jdorner/node-sapnwrfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
55 lines (45 loc) · 2.01 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "{build}"
environment:
SAPNWRFC_CRED:
secure: JCQKSUZLJpoW38OrqXgkTnoIf+5fQrShmHbAj7OY5ic=
SAPNWRFC_HOME: C:\projects\node-sapnwrfc\nwrfcsdk
ACCESS_TOKEN:
secure: XGl0z3kknSHe8dT+dFD6sFKSq8wEceR0k+HFyjt5d7UQCksrWylbufRfHinys8LT
matrix:
- nodejs_version: "4.0.0"
NODE_VERSION_SHORT: 4.0
- nodejs_version: "4.1.2"
NODE_VERSION_SHORT: 4.1
- nodejs_version: "4.2.1"
NODE_VERSION_SHORT: 4.2
- nodejs_version: "5.0.0"
NODE_VERSION_SHORT: 5.0
platform:
- x64
matrix:
fast_finish: true
install:
- git checkout %APPVEYOR_REPO_BRANCH%
- ps: Install-Product node $env:nodejs_version $env:platform
- ps: choco install -y curl
- if not defined SAPNWRFC_CRED ( exit 1 )
- curl -L -u %SAPNWRFC_CRED% -o SAPCAR_0-80000938.EXE "https://smpdla.sap.com/00000674/279/SAPCAR_0-80000938.EXE?object_id=012002523100006086842015D&filepath=00000674%%%%5c279%%%%5cSAPCAR_0-80000938%%%%2eEXE&uid=S0015138022&LOC=FRA&iesfx=.exe"
- curl -L -u %SAPNWRFC_CRED% -o NWRFC_36-20004568.SAR "https://smpdl.sap-ag.de/~swdc/012002523100013832132015D/NWRFC_36-20004568.SAR?_ACTION=DL_DIRECT"
- .\SAPCAR_0-80000938.EXE -xvf NWRFC_36-20004568.SAR
build_script:
- set PATH=%PATH%;%SAPNWRFC_HOME%\lib
- IF EXIST compiled\%NODE_VERSION_SHORT%\win32\x64 rmdir /S /Q compiled\%NODE_VERSION_SHORT%\win32\x64
- npm install
- mkdir compiled\%NODE_VERSION_SHORT%\win32\x64
- xcopy /Y build\Release\sapnwrfc.node compiled\%NODE_VERSION_SHORT%\win32\x64\
test_script:
- set PATH=%PATH%;%SAPNWRFC_HOME%\lib
- npm run test:win32
deploy_script:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:ACCESS_TOKEN):[email protected]`n"
- if /I "%APPVEYOR_REPO_TAG%"=="True" ( appveyor-publish.bat ) else ( echo "no tag" )
artifacts:
- path: 'compiled\**\sapnwrfc.node'
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))