forked from jeffhammond/PRK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-julia.sh
executable file
·30 lines (27 loc) · 1.1 KB
/
install-julia.sh
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
#!/bin/sh
set -e
set -x
os=`uname`
TRAVIS_ROOT="$1"
case "$os" in
Darwin)
echo "Mac"
brew update
brew upgrade julia || brew install julia || brew upgrade Caskroom/cask/julia || brew install Caskroom/cask/julia
;;
Linux)
echo "Linux"
#JULIA_NAME=julia-2ac304dfba # julia-0.4.5-linux-x86_64.tar.gz
JULIA_NAME=julia-f4c6c9d4bb # julia-0.5.2-linux-x86_64.tar.gz
if [ ! -d "$TRAVIS_ROOT/$JULIA_NAME" ]; then
cd $TRAVIS_ROOT
#wget --no-check-certificate -q https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.5-linux-x86_64.tar.gz
#tar -C $TRAVIS_ROOT -xzvf julia-0.4.5-linux-x86_64.tar.gz
wget --no-check-certificate -q https://julialang-s3.julialang.org/bin/linux/x64/0.5/julia-0.5.2-linux-x86_64.tar.gz
tar -C $TRAVIS_ROOT -xzvf julia-0.5.2-linux-x86_64.tar.gz
# symbolic link was not working for reasons i cannot explain
ln -s $TRAVIS_ROOT/$JULIA_NAME $TRAVIS_ROOT/julia
find $TRAVIS_ROOT -type f -name julia
fi
;;
esac