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 " $title "
12
+ }
13
+
14
+ fold_end () {
15
+ key=$1
16
+ tock=" $( date +%s) "
17
+ nano=000000000
18
+ echo -e " travis_time:end:$key :start=$tick$nano ,finish=$tock$nano ,duration=$(( tock - tick)) $nano \e[2K"
19
+ echo -e " travis_fold:end:$key \e[2K"
20
+ }
21
+
22
+ fold_start Python " Install Python 3.8 from python.org"
7
23
curl -O https://www.python.org/ftp/python/3.8.5/python-3.8.5-macosx10.9.pkg
8
24
sudo installer -package python-3.8.5-macosx10.9.pkg -target /
9
25
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python
10
26
hash -r
11
- echo -e " travis_fold:end: Python\e[2K "
27
+ fold_end Python
12
28
13
- echo -e " travis_fold:start:Qt4.8\e[2K"
14
- echo " Install Qt 4.8 from qt.io"
29
+ fold_start Qt4.8 " Install Qt 4.8 from qt.io"
15
30
curl -O https://download.qt.io/archive/qt/4.8/4.8.7/qt-opensource-mac-4.8.7.dmg
16
31
hdiutil attach qt-opensource-mac-4.8.7.dmg
17
32
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_headers.pkg' -target /
18
33
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_imports.pkg' -target /
19
34
sudo installer -package ' /Volumes/Qt 4.8.7/packages/Qt_libraries.pkg' -target /
20
35
hdiutil detach ' /Volumes/Qt 4.8.7'
21
- echo -e " travis_fold:end: Qt4.8\e[2K "
36
+ fold_end Qt4.8
22
37
23
- echo -e " travis_fold:start:ccache\e[2K"
24
- echo ' Install ccache (compile it ourselves)'
38
+ fold_start ccache ' Install ccache (compile it ourselves)'
25
39
curl -O -L https://github.com/ccache/ccache/releases/download/v3.7.11/ccache-3.7.11.tar.xz
26
40
tar xf ccache-3.7.11.tar.xz
27
41
pushd ccache-3.7.11
32
46
for compiler in clang clang++ cc gcc c++ g++; do
33
47
ln -sf ccache /usr/local/bin/$compiler
34
48
done
35
- echo -e " travis_fold:end: ccache\e[2K "
49
+ fold_end ccache
36
50
37
- echo -e " travis_fold:start:pkg-config\e[2K"
38
- echo ' Install pkg-config (compile it ourselves)'
51
+ fold_start pkg-config ' Install pkg-config (compile it ourselves)'
39
52
curl -O -L https://dl.bintray.com/homebrew/mirror/pkg-config-0.29.2.tar.gz
40
53
tar xf pkg-config-0.29.2.tar.gz
41
54
pushd pkg-config-0.29.2
@@ -45,22 +58,20 @@ pushd pkg-config-0.29.2
45
58
make
46
59
make install
47
60
popd
48
- echo -e " travis_fold:end: pkg-config\e[2K "
61
+ fold_end pkg-config
49
62
50
- echo -e " travis_fold:start:libpng\e[2K"
51
- echo ' Install libpng (compile it ourselves)'
63
+ fold_start libpng ' Install libpng (compile it ourselves)'
52
64
curl -O -L https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz
53
65
tar xf libpng-1.6.37.tar.xz
54
66
pushd libpng-1.6.37
55
67
./configure --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local
56
68
make
57
69
make install
58
70
popd
59
- echo -e " travis_fold:end: libpng\e[2K "
71
+ fold_end libpng
60
72
61
- echo -e " travis_fold:start:freetype\e[2K"
62
- echo ' Install libpng (just unpack into the build directory)'
73
+ fold_start freetype ' Install freetype (just unpack into the build directory)'
63
74
curl -O -L https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz
64
75
mkdir -p build
65
76
tar -x -C build -f freetype-2.6.1.tar.gz
66
- echo -e " travis_fold:end: freetype\e[2K "
77
+ fold_end freetype
0 commit comments