forked from FStarLang/karamel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·27 lines (22 loc) · 982 Bytes
/
install.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
#!/bin/bash
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get install --yes libssl-dev opam libgmp-dev libsqlite3-dev g++-5 gcc-5 libc6-dev;
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 200;
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 200;
fi
export OPAMYES=true
opam init
eval $(opam config env)
opam install batteries sqlite3 fileutils stdint zarith yojson pprint \
ppx_deriving_yojson menhir ulex process fix wasm
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export Z3=z3-4.4.1-x64-ubuntu-14.04;
wget https://github.com/Z3Prover/z3/releases/download/z3-4.4.1/$Z3.zip;
unzip $Z3.zip;
wget https://www.dropbox.com/s/r1uj2cqifhz50ri/d8.tar.bz2?dl=0 -O d8.tar.bz2
tar xjvf d8.tar.bz2
fi
git clone --branch stable --single-branch --depth 1 https://github.com/FStarLang/FStar.git fstar
git clone --branch master --single-branch --depth 1 https://github.com/mitls/hacl-star
make -C fstar/src/ocaml-output