travis: cache creates directory - check file instead before downloading
This commit is contained in:
parent
4aca1e5b9c
commit
84f992d9df
|
@ -25,7 +25,7 @@ matrix:
|
||||||
sudo: required
|
sudo: required
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
- sudo apt-get install -y libssl-dev libgflags-dev libsnappy-dev
|
||||||
- "[ -d rocksdb-5.14.2 ] || { wget https://github.com/facebook/rocksdb/archive/v5.14.2.tar.gz && tar xvf v5.14.2.tar.gz; }"
|
- "[ -f rocksdb-5.14.2/Makefile ] || { wget https://github.com/facebook/rocksdb/archive/v5.14.2.tar.gz && tar xvf v5.14.2.tar.gz; }"
|
||||||
# rocksdb not present on trusty - on a newer ubuntu you can apt-get install -y librocksdb-dev
|
# rocksdb not present on trusty - on a newer ubuntu you can apt-get install -y librocksdb-dev
|
||||||
- cd rocksdb-5.14.2 && make shared_lib -j$(nproc) && sudo make INSTALL_PATH=/usr install-shared && cd ..
|
- cd rocksdb-5.14.2 && make shared_lib -j$(nproc) && sudo make INSTALL_PATH=/usr install-shared && cd ..
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue