Skip to content

Commit

Permalink
Fixes extras download on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Dec 3, 2019
1 parent 64cdf91 commit 564d3a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:


before_install:
# install EnergyPlus
# download EnergyPlus
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then EXT=dmg; PLATFORM=Darwin; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then EXT=sh; PLATFORM=Linux; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then EXT=exe; PLATFORM=Windows; fi
Expand All @@ -37,8 +37,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ATTCHBASE=97; ATTCHNUM=8230; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ATTCHBASE=98; ATTCHNUM=8232; fi
- EXTRAS_DOWNLOAD_URL=http://energyplus.helpserve.com/Knowledgebase/Article/GetAttachment/$ATTCHBASE/$ATTCHNUM
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -SLO $EXTRAS_DOWNLOAD_URL; fi
- curl -SLO $EXTRAS_DOWNLOAD_URL
# install EnergyPlus
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
sudo hdiutil attach $ENERGYPLUS_DOWNLOAD_FILENAME.$EXT;
Expand Down

0 comments on commit 564d3a7

Please sign in to comment.