Skip to content

Instantly share code, notes, and snippets.

@notnoopci
Created January 29, 2014 11:33
Show Gist options
  • Save notnoopci/8686213 to your computer and use it in GitHub Desktop.
Save notnoopci/8686213 to your computer and use it in GitHub Desktop.
Upgrade Circle to use JDK 8
dependencies:
cache_directories:
- "~/jdk1.8.0"
pre:
- "[[ -d ~/jdk1.8.0 ]] || ( curl -L -o ~/jdk-8.tar.gz http://www.java.net/download/jdk8/archive/b124/binaries/jdk-8-ea-bin-b124-linux-x64-19_jan_2014.tar.gz && tar -xz -C ~ -f ~/jdk-8.tar.gz )"
- echo 'export JAVA_HOME=~/jdk1.8.0' >> ~/.circlerc
- echo 'export PATH=~/jdk1.8.0/bin:$PATH' >> ~/.circlerc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment