8000 See if we can add timings to the titles · matplotlib/matplotlib@7ab5236 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ab5236

Browse files
committed
See if we can add timings to the titles
1 parent 4cfaa9e commit 7ab5236

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

ci/osx-deps

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,39 @@
22

33
set -euo pipefail
44

5-
echo -e "travis_fold:start:Python\e[2K"
6-
echo "Install Python 3.8 from python.org"
5+
fold_start() {
6+
key=$1
7+
title=$2
8+
echo -e "travis_fold:start:$key\e[2K"
9+
echo -e "travis_time:start:$key\e[2K"
10+
tick="$(date +%s)"
11+
echo -e "\e[32m$title\e[0m"
12+
}
13+
14+
fold_end() {
15+
key=$1
16+
tock="$(date +%s)"
17+
echo -e "travis_time:end:$key:start=$tick,finish=$tock,duration=$((tock - tick))\e[2K"
18+
echo -e "travis_fold:end:$key\e[2K"
19+
}
20+
21+
fold_start Python "Install Python 3.8 from python.org"
722
curl -O https://www.python.org/ftp/python/3.8.5/python-3.8.5-macosx10.9.pkg
823
sudo installer -package python-3.8.5-macosx10.9.pkg -target /
924
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python
1025
hash -r
11-
echo -e "travis_fold:end:Python\e[2K"
26+
fold_end Python
1227

13-
echo -e "travis_fold:start:Qt4.8\e[2K"
14-
echo "Install Qt 4.8 from qt.io"
28+
fold_start Qt4.8 "Install Qt 4.8 from qt.io"
1529
curl -O https://download.qt.io/archive/qt/4.8/4.8.7/qt-opensource-mac-4.8.7.dmg
1630
hdiutil attach qt-opensource-mac-4.8.7.dmg
1731
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_headers.pkg' -target /
1832
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_imports.pkg' -target /
1933
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_libraries.pkg' -target /
2034
hdiutil detach '/Volumes/Qt 4.8.7'
21-
echo -e "travis_fold:end:Qt4.8\e[2K"
35+
fold_end Qt4.8
2236

23-
echo -e "travis_fold:start:ccache\e[2K"
24-
echo 'Install ccache (compile it ourselves)'
37+
fold_start ccache 'Install ccache (compile it ourselves)'
2538
curl -O -L https://github.com/ccache/ccache/releases/download/v3.7.11/ccache-3.7.11.tar.xz
2639
tar xf ccache-3.7.11.tar.xz
2740
pushd ccache-3.7.11
@@ -32,10 +45,9 @@ popd
3245
for compiler in clang clang++ cc gcc c++ g++; do
3346
ln -sf ccache /usr/local/bin/$compiler
3447
done
35-
echo -e "travis_fold:end:ccache\e[2K"
48+
fold_end ccache
3649

37-
echo -e "travis_fold:start:pkg-config\e[2K"
38-
echo 'Install pkg-config (compile it ourselves)'
50+
fold_start pkg-config 'Install pkg-config (compile it ourselves)'
3951
curl -O -L https://dl.bintray.com/homebrew/mirror/pkg-config-0.29.2.tar.gz
4052
tar xf pkg-config-0.29.2.tar.gz
4153
pushd pkg-config-0.29.2
@@ -45,22 +57,20 @@ pushd pkg-config-0.29.2
4557
make
4658
make install
4759
popd
48-
echo -e "travis_fold:end:pkg-config\e[2K"
60+
fold_end pkg-config
4961

50-
echo -e "travis_fold:start:libpng\e[2K"
51-
echo 'Install libpng (compile it ourselves)'
62+
fold_start libpng 'Install libpng (compile it ourselves)'
5263
curl -O -L https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz
5364
tar xf libpng-1.6.37.tar.xz
5465
pushd libpng-1.6.37
5566
./configure --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local
5667
make
5768
make install
5869
popd
59-
echo -e "travis_fold:end:libpng\e[2K"
70+
fold_end libpng
6071

61-
echo -e "travis_fold:start:freetype\e[2K"
62-
echo 'Install libpng (just unpack into the build directory)'
72+
fold_start freetype 'Install freetype (just unpack into the build directory)'
6373
curl -O -L https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz
6474
mkdir -p build
6575
tar -x -C build -f freetype-2.6.1.tar.gz
66-
echo -e "travis_fold:end:freetype\e[2K"
76+
fold_end freetype

0 commit comments

Comments
 (0)
0