forked from HDF-NI/hdf5.node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (77 loc) · 2.85 KB
/
.travis.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
language: node_js
node_js:
- "node"
- "14"
- "12"
env:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
CLANG_VERSION="export CC=gcc-7 && export CXX=g++-7";
elif [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
echo "Windoes compiler?";
else
GCC_VERSION="export CC=gcc-7 && export CXX=g++-7";
fi
os:
- linux
- osx
- windows
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libhdf5-dev
- cmake
osx_image: xcode8
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.gz -O /tmp/hdf5-1.10.5.tar.gz;
tar -zxvf /tmp/hdf5-1.10.5.tar.gz;
cd `pwd`/hdf5-1.10.5;
./configure --prefix=`pwd`/dist --enable-shared=yes --enable-static=no --enable-parallel=no --enable-hl --enable-build-mode=production --without-szlib;
make -j2 2>&1 &> hdf5_screen.txt;
make install;
cd ..;
export HDF5_HOME_MAC=`pwd`/hdf5-1.10.5/dist;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/Common7/Tools/VsDevCmd.bat;
which cmake;
cmake --version;
wget -q https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/bin/hdf5-1.12.0-Std-win10_64-vs15.zip -O /tmp/hdf5-1.12.0-Std-win10_64-vs15.zip;
unzip -q /tmp/hdf5-1.12.0-Std-win10_64-vs15.zip;
ls ./hdf;
mkdir -p `pwd`/hdf5-1.12.0/dist;
cd hdf;
echo `pwd`;
readlink -f HDF5-1.12.0-win64.msi;
ls -lastr `pwd`/HDF5-1.12.0-win64.msi;
msiexec //i `pwd`/HDF5-1.12.0-win64.msi //quiet TARGETDIR=`pwd`/../hdf5-1.12.0/dist //qb;
cd ..;
which h5dump;
ls `pwd`/hdf5-1.12.0/dist;
export HDF5_HOME_WIN=`pwd`/hdf5-1.12.0/dist;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
echo ${HDF5_HOME};
npm install --longlong_type=LONGLONG53BITS --hdf5_home_mac=${HDF5_HOME_MAC};
elif [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
echo "Windoes compiler?";
npm install --longlong_type=LONGLONG53BITS --hdf5_home_win=${HDF5_HOME_WIN};
else
export HDF5_HOME_LINUX=/usr/lib/x86_64-linux-gnu/hdf5/serial;
eval "${GCC_VERSION}" ;
npm install --longlong_type=LONGLONG53BITS --hdf5_home_linux=${HDF5_HOME_LINUX};
fi
before-scripte:
- export PATH=`pwd`/node_modules/.bin:${PATH}
- export LD_LIBRARY_PATH=`pwd`/hdf5-1.10.2/dist/lib:${LD_LIBRARY_PATH}
- export DYLD_LIBRARY_PATH=`pwd`/hdf5-1.10.2/dist/lib:${DYLD_LIBRARY_PATH}
script:
- export PATH=`pwd`/node_modules/.bin:${PATH}
- export LD_LIBRARY_PATH=`pwd`/hdf5-1.10.2/dist/lib:${LD_LIBRARY_PATH}
- export DYLD_LIBRARY_PATH=`pwd`/hdf5-1.10.2/dist/lib:${DYLD_LIBRARY_PATH}
- echo ${PATH}
- ls `pwd`/node_modules/.bin
- mocha --harmony --require should