2
2
3
3
set -euo pipefail
4
4
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"
7
22
curl -O https://www.python.org/ftp/python/3.8.5/python-3.8.5-macosx10.9.pkg
8
23
sudo installer -package python-3.8.5-macosx10.9.pkg -target /
9
24
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python
10
25
hash -r
11
- echo -e " travis_fold:end: Python\e[2K "
26
+ fold_end Python
12
27
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"
15
29
curl -O https://download.qt.io/archive/qt/4.8/4.8.7/qt-opensource-mac-4.8.7.dmg
16
30
hdiutil attach qt-opensource-mac-4.8.7.dmg
17
31
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_headers.pkg' -target /
18
32
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_imports.pkg' -target /
19
33
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_libraries.pkg' -target /
20
34
hdiutil detach ' /Volumes/Qt 4.8.7'
21
- echo -e " travis_fold:end: Qt4.8\e[2K "
35
+ fold_end Qt4.8
22
36
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)'
25
38
curl -O -L https://github.com/ccache/ccache/releases/download/v3.7.11/ccache-3.7.11.tar.xz
26
39
tar xf ccache-3.7.11.tar.xz
27
40
pushd ccache-3.7.11
32
45
for compiler in clang clang++ cc gcc c++ g++; do
33
46
ln -sf ccache /usr/local/bin/$compiler
34
47
done
35
- echo -e " travis_fold:end: ccache\e[2K "
48
+ fold_end ccache
36
49
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)'
39
51
curl -O -L https://dl.bintray.com/homebrew/mirror/pkg-config-0.29.2.tar.gz
40
52
tar xf pkg-config-0.29.2.tar.gz
41
53
pushd pkg-config-0.29.2
@@ -45,22 +57,20 @@ pushd pkg-config-0.29.2
45
57
make
46
58
make install
47
59
popd
48
- echo -e " travis_fold:end: pkg-config\e[2K "
60
+ fold_end pkg-config
49
61
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)'
52
63
curl -O -L https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz
53
64
tar xf libpng-1.6.37.tar.xz
54
65
pushd libpng-1.6.37
55
66
./configure --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local
56
67
make
57
68
make install
58
69
popd
59
- echo -e " travis_fold:end: libpng\e[2K "
70
+ fold_end libpng
60
71
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)'
63
73
curl -O -L https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz
64
74
mkdir -p build
65
75
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