Skip to content

Commit

Permalink
[Travis-CI] Install nlopt-2.4.2 from github when mit server is down
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Jul 9, 2015
1 parent 36ec220 commit 33fa399
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/before_install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ before_install() {
cd /tmp

# Install nlopt from source since Ubuntu 12.04 does not provide debian package for nlopt
curl -o nlopt-2.4.1.tar.gz http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz
tar -xf nlopt-2.4.1.tar.gz
cd nlopt-2.4.1/
(curl -o nlopt-2.4.2.tar.gz http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz) ||
(curl -o nlopt-2.4.2.tar.gz https://github.com/stevengj/nlopt/archive/nlopt-2.4.2.tar.gz)
tar -xf nlopt-2.4.2.tar.gz
cd nlopt-2.4.2/
sh autogen.sh &>/dev/null # mute the output
make CPPFLAGS='-fPIC' && sudo make install &>/dev/null # mute the output
}
Expand Down

0 comments on commit 33fa399

Please sign in to comment.