Skip to content

Commit

Permalink
chore: fixing travis ci build failure due directory permissions [+]
Browse files Browse the repository at this point in the history
plus caching for revoked key hashes blacklist

Signed-off-by: Marco Aurélio da Silva <marcoonroad@gmail.com>
  • Loading branch information
marcoonroad committed Nov 13, 2018
1 parent 38a0f01 commit f09f11b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,3 +9,4 @@ docs/.bundle/config
docs/_site/
docs/.jekyll-metadata
dune-workspace
.hieroglyphs/
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -14,3 +14,7 @@ env:
os:
- linux
- osx

cache:
directories:
- .hieroglyphs
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -31,10 +31,10 @@ doc: build
# - ALCOTEST_SHOW_ERRORS=1
#
test:
dune build @test/spec/runtest -f --no-buffer -j 1
HIEROGLYPHS_ROOT=`pwd`/.hieroglyphs dune build @test/spec/runtest -f --no-buffer -j 1

bench:
dune build @test/bench/runtest -f --no-buffer -j 1
HIEROGLYPHS_ROOT=`pwd`/.hieroglyphs dune build @test/bench/runtest -f --no-buffer -j 1

install:
dune install
Expand Down
5 changes: 3 additions & 2 deletions lib/blacklist.ml
Expand Up @@ -12,8 +12,9 @@ let split address =
let filename = String.sub ~pos:4 ~len:(length - 4) address in
(directory, filename)

let _HOME = Sys.getenv_exn "HOME"
let _CONFIG_DIR = _HOME ^ "/.hieroglyphs"
let _CONFIG_DIR = match Sys.getenv "HIEROGLYPHS_ROOT" with
| None -> Sys.getenv_exn "HOME" ^ "/.hieroglyphs"
| Some directory -> directory
let _BLACKLIST_ROOTDIR = _CONFIG_DIR ^ "/blacklist"

let config = Irmin_git.config ~bare:true _BLACKLIST_ROOTDIR
Expand Down

0 comments on commit f09f11b

Please sign in to comment.