Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.

Commit

Permalink
Pushd/popd like a pro when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Sep 11, 2017
1 parent acf5e42 commit 374ca8e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis_install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set -o nounset
download_llvm(){
echo "Downloading and installing LLVM ${LLVM_VERSION}"

cd /tmp
wget "http://llvm.org/releases/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-debian8.tar.xz"
tar -xvf clang+llvm*
pushd clang+llvm* && sudo mkdir /tmp/llvm && sudo cp -r ./* /tmp/llvm/
Expand All @@ -17,7 +16,6 @@ download_llvm(){
download_pcre(){
echo "Downloading and building PCRE2..."

cd /tmp
wget "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.bz2"
tar -xjvf pcre2-10.21.tar.bz2
pushd pcre2-10.21 && ./configure --prefix=/usr && make && sudo make install
Expand All @@ -26,7 +24,6 @@ download_pcre(){

install-ponyc-master(){
echo "Installing ponyc master..."
cd /tmp
git clone [email protected]:WallarooLabs/ponyc.git
cd ponyc
echo "Building ponyc..."
Expand All @@ -37,11 +34,11 @@ echo "Installing ponyc build dependencies..."
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]
then
echo -e "\033[0;32mInstalling ponyc master\033[0m"
INSTALL_STARTED_AT=`pwd`
pushd /tmp
download_llvm
download_pcre
install-ponyc-master
cd $INSTALL_STARTED_AT
popd
else
echo -e "\033[0;32mInstalling latest ponyc release\033[0m"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "8756 C4F7 65C9 AC3C B6B8 5D62 379C E192 D401 AB61"
Expand Down

0 comments on commit 374ca8e

Please sign in to comment.