Skip to content

Commit

Permalink
Fix install-deps for OSX bash.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Apr 7, 2020
1 parent cea88ee commit 1bc4e7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cache:
- $HOME/.opam

install:
- bin/install-deps
- bin/install-deps --disable-sandboxing
- eval $(opam env)

script:
Expand Down
6 changes: 3 additions & 3 deletions bin/install-deps
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

set -eu
set -eux

# Set up opam, install dune and menhir (it's not a library dependency).
opam init --disable-sandboxing -n
opam init -n "$@"
opam install dune menhir -y

eval $(opam env)

# Install dependencies: we keep installing dependencies until dune stops telling
# us to install more.
DUNE_CMD='dune external-lib-deps --missing --profile release @@default |& grep -o "opam install .*" || true'
DUNE_CMD='dune external-lib-deps --missing --profile release @@default 2>&1 | grep -o "opam install .*" || true'
INSTALL_CMD="$(eval $DUNE_CMD)"
while [ -n "$INSTALL_CMD" ]; do
$INSTALL_CMD -y
Expand Down

0 comments on commit 1bc4e7e

Please sign in to comment.