-
Notifications
You must be signed in to change notification settings - Fork 66
/
.ci-macosx.sh
57 lines (46 loc) · 1.27 KB
/
.ci-macosx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
set -ex
sw_vers
system_profiler SPSoftwareDataType
uname -a
brew update
# homebrew fails to upgrade python due to unlinking failure
# (cf. https://github.com/actions/setup-python/issues/577 )
rm -f /usr/local/bin/2to3
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
rm -f /usr/local/bin/2to3-3.*
rm -f /usr/local/bin/idle3.*
rm -f /usr/local/bin/pydoc3.*
rm -f /usr/local/bin/python3.*
rm -f /usr/local/bin/python3.*-config
rm -f /usr/local/lib/libtcl8.6.dylib
rm -f /usr/local/lib/libtk8.6.dylib
rm -f /usr/local/bin/go
rm -f /usr/local/bin/gofmt
rm -f /usr/local/bin/node
rm -f /usr/local/bin/npm
rm -f /usr/local/bin/npx
rm -f -r /usr/local/include/node
rm -f -r /usr/local/share/doc/node
rm -f -r /usr/local/lib/node_modules
rm -f /usr/local/lib/dtrace/node.d
rm -f /usr/local/share/man/man1/node.1
rm -f /usr/local/share/systemtap
brew upgrade
brew install pkg-config
brew install opam
brew install libev
brew install openssl
opam init -y -a --bare
opam switch create . ocaml-base-compiler --deps-only --locked -y -j 2 # -v
eval $(opam env)
# Run unit tests
# Note: we might want to run them in Linux as well in the CI
make test
make
make opaminstall
# See src/main/linking_flags.sh
make detect-libs