-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Build on xcode9 #18134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Build on xcode9 #18134
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e993baf
Build on xcode9
jkseppan ae28d9d
Try to install Qt 4.8
jkseppan 92a3b53
Add some decorative titles in the travis output
jkseppan 4cfaa9e
Skip the tests requiring Qt5
jkseppan a43518f
See if we can add timings to the titles
jkseppan d7fa78b
Skip warning about unused import
jkseppan 51740ec
uncomment only: master
jkseppan 66d9a21
Remove Qt4.8
jkseppan 9c67676
Don't install libpng
jkseppan ea02ac1
Don't install pkg-config
jkseppan 65115e0
Put the downloads in ~/Downloads
jkseppan d552816
Simplify script
jkseppan 85b6da9
Try caching the downloads elsewhere
jkseppan 968b063
Clarify comment
jkseppan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cache="$HOME"/.cache/matplotlib | ||
|
||
fold_start() { | ||
key=$1 | ||
title=$2 | ||
echo -e "travis_fold:start:$key\e[2K" | ||
echo -e "travis_time:start:$key\e[2K" | ||
tick="$(date +%s)" | ||
echo "$title" | ||
} | ||
|
||
fold_end() { | ||
key=$1 | ||
tock="$(date +%s)" | ||
nano=000000000 | ||
echo -e "travis_time:end:$key:start=$tick$nano,finish=$tock$nano,duration=$((tock - tick))$nano\e[2K" | ||
echo -e "travis_fold:end:$key\e[2K" | ||
} | ||
|
||
cached_download() { | ||
file=$1 | ||
url=$2 | ||
shasum=$3 | ||
path="$cache/$file" | ||
if [[ ! -f "$path" | ||
|| "$(shasum -a 256 "$path" | awk '{print $1}')" != "$shasum" ]] | ||
then | ||
curl -L -o "$path" "$url" | ||
fi | ||
} | ||
|
||
fold_start Python "Install Python 3.8 from python.org" | ||
cached_download python-3.8.5-macosx10.9.pkg \ | ||
https://www.python.org/ftp/python/3.8.5/python-3.8.5-macosx10.9.pkg \ | ||
e27c5a510c10f830084fb9c60b9e9aa8719d92e4537a80e6b4252c02396f0d29 | ||
sudo installer -package "$cache"/python-3.8.5-macosx10.9.pkg -target / | ||
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python | ||
hash -r | ||
fold_end Python | ||
|
||
fold_start ccache 'Install ccache (compile it ourselves)' | ||
cached_download ccache-3.7.11.tar.xz \ | ||
https://github.com/ccache/ccache/releases/download/v3.7.11/ccache-3.7.11.tar.xz \ | ||
8d450208099a4d202bd7df87caaec81baee20ce9dd62da91e9ea7b95a9072f68 | ||
tar xf "$cache"/ccache-3.7.11.tar.xz | ||
pushd ccache-3.7.11 | ||
./configure --prefix=/usr/local | ||
make -j2 | ||
make install | ||
popd | ||
for compiler in clang clang++ cc gcc c++ g++; do | ||
ln -sf ccache /usr/local/bin/$compiler | ||
done | ||
fold_end ccache | ||
|
||
fold_start freetype 'Install freetype (just unpack into the build directory)' | ||
cached_download freetype-2.6.1.tar.gz \ | ||
https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz \ | ||
0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014 | ||
mkdir -p build | ||
tar -x -C build -f "$cache"/freetype-2.6.1.tar.gz | ||
fold_end freetype |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯