forked from jdorner/node-sapnwrfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
50 lines (44 loc) · 1.77 KB
/
circle.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
machine:
timezone: Europe/Berlin
environment:
SAPNWRFC_HOME: /home/ubuntu/node-sapnwrfc/nwrfcsdk
NODE_VERSION: 4.2.1
SAPCAR: SAPCAR_0-80000935.EXE
NWRFC: NWRFC_36-20004565.SAR
node:
version: $NODE_VERSION
pre:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 10
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
dependencies:
cache_directories:
- cache
pre:
- mkdir -p cache
- if [[ ! -e cache/${SAPCAR} ]]; then curl -L -u "${SAPNWRFC_CRED}" -o cache/${SAPCAR} "https://smpdla.sap.com/00000674/280/SAPCAR_0-80000935.EXE?object_id=012002523100006088652015D&filepath=00000674%5c280%5cSAPCAR_0-80000935%2eEXE&uid=S0015138022&LOC=FRA&iesfx=.exe"; fi
- if [[ ! -e cache/${NWRFC} ]]; then curl -L -u "${SAPNWRFC_CRED}" -o cache/${NWRFC} "https://smpdl.sap-ag.de/~swdc/012002523100013831902015D/NWRFC_36-20004565.SAR?_ACTION=DL_DIRECT"; fi
- cp cache/${SAPCAR} .
- cp cache/${NWRFC} .
- chmod +x ${SAPCAR}
- ./${SAPCAR} -xvf ${NWRFC}
- echo "$SAPNWRFC_HOME/lib" | sudo tee /etc/ld.so.conf.d/nwrfcsdk.conf
- sudo ldconfig
- rm -rf compiled/*/linux/x64
test:
override:
- gulp build
- cp -R compiled ${CIRCLE_ARTIFACTS}
- rm -rf build
- npm test
deployment:
publish:
tag: /[0-9]+(\.[0-9]+)*/
commands:
- git config user.email "${GIT_EMAIL}"
- git config user.name "${GIT_NAME}"
- git pull origin ${CIRCLE_BRANCH}
- git add -f compiled
- git diff --cached --exit-code >/dev/null || git commit -m "[ci skip] Add binaries for Linux"
- git push origin ${CIRCLE_BRANCH}