mirror of https://github.com/rwf2/Rocket.git
Hopefully a fix for the travis bash script.
This commit is contained in:
parent
d16d9bd0d7
commit
55d5dd2b46
|
@ -1,12 +1,12 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
SCRIPTPATH=$(cd "$(dirname "$0")" ; pwd -P)
|
SCRIPT_PATH=$(cd "$(dirname "$0")" ; pwd -P)
|
||||||
DATABASE_URL=${SCRIPTPATH}/db/db.sql
|
DATABASE_URL=${SCRIPT_PATH}/db/db.sql
|
||||||
|
|
||||||
pushd $SCRIPTPATH
|
pushd $SCRIPT_PATH
|
||||||
# install the diesel CLI tools
|
# install the diesel CLI tools
|
||||||
cargo install diesel_cli
|
cargo install diesel_cli
|
||||||
|
|
||||||
# create db/db.sql
|
# create db/db.sql
|
||||||
diesel migration --database-url=$DATABASE_URL run
|
diesel migration --database-url=$DATABASE_URL run
|
||||||
popd $SCRIPTPATH
|
popd $SCRIPT_PATH
|
||||||
|
|
|
@ -5,6 +5,9 @@ EXAMPLES_DIR="examples"
|
||||||
LIB_DIR="lib"
|
LIB_DIR="lib"
|
||||||
MACROS_DIR="macros"
|
MACROS_DIR="macros"
|
||||||
|
|
||||||
|
# Add Cargo to PATH.
|
||||||
|
export PATH=${HOME}/.cargo/bin:${PATH}
|
||||||
|
|
||||||
function build_and_test() {
|
function build_and_test() {
|
||||||
local dir=$1
|
local dir=$1
|
||||||
if [ -z "${dir}" ] || ! [ -d "${dir}" ]; then
|
if [ -z "${dir}" ] || ! [ -d "${dir}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue