-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moves to travis stages! * removed unused env variables and use `cp -al` * use `cp -alu` to copy only if files changes * fixed cp -alu in other place * threw away -alu
- Loading branch information
Showing
5 changed files
with
72 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
TASK=$1 | ||
|
||
eval `opam config env` | ||
|
||
comp=`opam config var switch` | ||
|
||
cp -r $HOME/save_opam/bin/* $HOME/.opam/$comp/bin/ | ||
cp -r $HOME/save_opam/share/* $HOME/.opam/$comp/share/ | ||
cp -r $HOME/save_opam/lib/* $HOME/.opam/$comp/lib/ | ||
|
||
bap --version | ||
bap-byteweight update | ||
|
||
if [ "$TASK" == "checks" ]; then | ||
bash -exc 'make check' | ||
fi | ||
|
||
if [ "$TASK" == "unit_tests" ]; then | ||
bap_run_tests | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export OPAMYES=true | ||
export PACKAGE=bap | ||
export TESTS=false | ||
|
||
if [ "$WITH_BUILD_CACHE" == "true" ]; then | ||
export POST_INSTALL_HOOK=' | ||
x=`ocamlfind query bap` | ||
if [ $x != "" ]; then | ||
echo START TO PACK BAP | ||
OPAM_SWITCH=`opam config var switch` | ||
mkdir -p $HOME/save_opam | ||
mkdir -p $HOME/save_opam/lib | ||
cp -r $HOME/.opam/$OPAM_SWITCH/lib/bap* $HOME/save_opam/lib/ | ||
cp -r $HOME/.opam/$OPAM_SWITCH/bin/ $HOME/save_opam/ | ||
cp -r $HOME/.opam/$OPAM_SWITCH/share $HOME/save_opam/ | ||
fi | ||
' | ||
fi | ||
|
||
wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh | ||
bash -ex .travis-opam.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters