forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.opam.sh
executable file
·30 lines (23 loc) · 875 Bytes
/
deps.opam.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
#!/bin/sh
set -e
set -x
# Infer commands
if [ ! -e ~/infer-linux64-v0.7.0/infer/bin ]; then
wget -nc -O ~/infer.tar.xz https://github.com/facebook/infer/releases/download/v0.7.0/infer-linux64-v0.7.0.tar.xz
tar xf ~/infer.tar.xz -C ~/
cd ~/infer-linux64-v0.7.0
opam init --y
opam update
# See https://github.com/coala/coala-bears/issues/2059
opam pin add --yes --no-action yojson 1.3.3
opam pin add --yes --no-action biniou 1.0.6
# See https://github.com/coala/coala-bears/issues/1763
opam pin add --yes --no-action atdgen 1.10.0
# See https://github.com/coala/coala-bears/issues/2059
opam pin add --yes --no-action easy-format 1.2.0
# See https://github.com/coala/coala-bears/issues/1763
opam pin add --yes --no-action reason 1.13.5
opam pin add --yes --no-action infer .
opam install --deps-only --yes infer
./build-infer.sh java
fi