Hopefully a fix for the travis bash script.

This commit is contained in:
Sergio Benitez 2016-08-06 20:59:51 -07:00
parent d16d9bd0d7
commit 55d5dd2b46
2 changed files with 7 additions and 4 deletions

View File

@ -1,12 +1,12 @@
#! /usr/bin/env bash
SCRIPTPATH=$(cd "$(dirname "$0")" ; pwd -P)
DATABASE_URL=${SCRIPTPATH}/db/db.sql
SCRIPT_PATH=$(cd "$(dirname "$0")" ; pwd -P)
DATABASE_URL=${SCRIPT_PATH}/db/db.sql
pushd $SCRIPTPATH
pushd $SCRIPT_PATH
# install the diesel CLI tools
cargo install diesel_cli
# create db/db.sql
diesel migration --database-url=$DATABASE_URL run
popd $SCRIPTPATH
popd $SCRIPT_PATH

View File

@ -5,6 +5,9 @@ EXAMPLES_DIR="examples"
LIB_DIR="lib"
MACROS_DIR="macros"
# Add Cargo to PATH.
export PATH=${HOME}/.cargo/bin:${PATH}
function build_and_test() {
local dir=$1
if [ -z "${dir}" ] || ! [ -d "${dir}" ]; then