Skip to content

Commit 2a97024

Browse files
committed
Added sqlcl install script
1 parent 72eb3bc commit 2a97024

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.travis/install_sqlcl.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -e
3+
4+
SQLCL_FILE=sqlcl-18.3.0.259.2029.zip
5+
cd .travis
6+
7+
# Download if not present on cache dir.
8+
if [ ! -f $CACHE_DIR/$SQLCL_FILE ]; then
9+
npm install -g phantomjs-prebuilt casperjs
10+
bash download.sh -p sqlcl
11+
mv $SQLCL_FILE $CACHE_DIR
12+
else
13+
echo "Installing sqlcl from cache..."
14+
fi;
15+
16+
# Install sqlcl.
17+
unzip -q $CACHE_DIR/$SQLCL_FILE -d $HOME
18+
19+
# Check if it is installed correctly.
20+
$SQLCLI -v

0 commit comments

Comments
 (0)