-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #564 from NREL/remove-hardcoded-install
Remove hardcoded openstudio version and sha
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,16 @@ else | |
cp mongodb-osx-x86_64-3.4.18/bin/* /usr/local/bin/ | ||
|
||
# Install openstudio -- Use the install script that is in this repo now, the one on OpenStudio/develop has changed | ||
curl -SLO --insecure https://openstudio-builds.s3.amazonaws.com/3.0.0/OpenStudio-3.0.0%2B1c9617fa4e-Darwin.dmg | ||
# OSX downloads with %2B. These are unsafe chars in url strings | ||
hdiutil attach OpenStudio-3.0.0%2B1c9617fa4e-Darwin.dmg | ||
export OS_NAME=OpenStudio-${OPENSTUDIO_VERSION}${OPENSTUDIO_VERSION_EXT}%2B${OPENSTUDIO_VERSION_SHA}-Darwin | ||
export OS_NAME_WITH_PLUS=OpenStudio-${OPENSTUDIO_VERSION}${OPENSTUDIO_VERSION_EXT}+${OPENSTUDIO_VERSION_SHA}-Darwin | ||
curl -SLO --insecure https://openstudio-builds.s3.amazonaws.com/${OPENSTUDIO_VERSION}/${OS_NAME}.dmg | ||
# OSX downloads with %2B but installs with + sign. These are the encoded chars in url strings. | ||
hdiutil attach ${OS_NAME}.dmg | ||
sed -i -e "s|REPLACEME|$HOME/openstudio|" ci/travis/install-mac.qs | ||
rm -rf $HOME/openstudio | ||
# Will install into $HOME/openstudio and RUBYLIB will be $HOME/openstudio/Ruby | ||
sudo /Volumes/OpenStudio-3.0.0+1c9617fa4e-Darwin/OpenStudio-3.0.0+1c9617fa4e-Darwin.app/Contents/MacOS/OpenStudio-3.0.0+1c9617fa4e-Darwin --script ci/travis/install-mac.qs | ||
hdiutil detach /Volumes/OpenStudio-3.0.0+1c9617fa4e -force | ||
sudo /Volumes/${OS_NAME_WITH_PLUS}/${OS_NAME_WITH_PLUS}.app/Contents/MacOS/${OS_NAME_WITH_PLUS} --script ci/travis/install-mac.qs | ||
hdiutil detach /Volumes/${OS_NAME_WITH_PLUS} -force | ||
|
||
export PATH="$TRAVIS_BUILD_DIR/gems/bin:/usr/local/opt/[email protected]/bin:$HOME/openstudio/bin:$PATH" | ||
export RUBYLIB="$HOME/openstudio/Ruby" | ||
|