-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
66 lines (66 loc) · 2 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
language: cpp
os:
- osx
- linux
env:
- NODE_VERSION="0.10"
JULIA_VERSION="0.3"
- NODE_VERSION="0.12"
JULIA_VERSION="0.4"
- NODE_VERSION="0.12"
JULIA_VERSION="0.5"
- NODE_VERSION="4.2"
JULIA_VERSION="0.4"
- NODE_VERSION="4.2"
JULIA_VERSION="0.5"
- NODE_VERSION="5.2"
JULIA_VERSION="0.4"
- NODE_VERSION="5.2"
JULIA_VERSION="0.5"
before_install:
- if [ `uname` = "Linux" ]; then
nvm install $NODE_VERSION;
sudo add-apt-repository ppa:staticfloat/julia-deps -y;
if [ "$JULIA_VERSION" = "0.3" ]; then
sudo add-apt-repository ppa:staticfloat/juliareleases -y;
sudo apt-get update -qq -y;
sudo apt-get install libpcre3-dev julia0.3 -y;
elif [ "$JULIA_VERSION" = "0.4" ]; then
sudo add-apt-repository ppa:staticfloat/juliareleases -y;
sudo apt-get update -qq -y;
sudo apt-get install libpcre3-dev julia -y;
else
sudo add-apt-repository ppa:staticfloat/julianightlies -y;
sudo apt-get update -qq -y;
sudo apt-get install libpcre3-dev julia -y;
fi;
export CXX="g++-4.8";
npm install -g mocha chai sinon bindings node-gyp;
elif [ `uname` = "Darwin" ]; then
npm -g install npm;
npm -g install n;
n $NODE_VERSION;
npm install -g mocha chai sinon bindings node-gyp;
if [ "$JULIA_VERSION" = "0.3" ]; then
wget -O julia.dmg "https://s3.amazonaws.com/julialang/bin/osx/x64/0.3/julia-0.3.12-osx10.7+.dmg";
elif [ "$JULIA_VERSION" = "0.4" ]; then
wget -O julia.dmg "http://status.julialang.org/stable/osx10.7+";
else
wget -O julia.dmg "http://status.julialang.org/download/osx10.7+";
fi;
hdiutil mount julia.dmg;
cp -Ra /Volumes/Julia*/*.app/Contents/Resources/julia ~;
export PATH=$PATH:~/julia/bin;
fi
- node --version
- julia -e 'versioninfo()'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
script:
- npm install
- npm test