Skip to content

Instantly share code, notes, and snippets.

@appleparan
Created August 15, 2017 19:10
Show Gist options
  • Save appleparan/dc318bec96b9b2143b9363b3fae4a532 to your computer and use it in GitHub Desktop.
Save appleparan/dc318bec96b9b2143b9363b3fae4a532 to your computer and use it in GitHub Desktop.
Update Julia Nightly (For docker)
#!/bin/bash
# inspired from travis CI julia support
# https://github.com/travis-ci/travis-build/blob/1b50ac7aeff53e2fed4c629920ebbb4814e71ea8/lib/travis/build/script/julia.rb
echo 'Installing Julia'
CURL_USER_AGENT="Travis-CI $(curl --version | head -n 1)"
JULIA_URL="https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-linux64.tar.gz"
mkdir -p ~/julia
curl -A "$CURL_USER_AGENT" -k -s -L --retry 7 $JULIA_URL | tar -C ~/julia -x -z --strip-components=1 -f -
ln -sf ~/julia/bin/julia ~/bin/julia
julia -e 'versioninfo()'
echo ' '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment