#!/bin/bash -ex
# This script takes care of testing your crate

main() {
    export V8_LIBS=$PWD/v8-build/lib/libv8uber.a
    export V8_SOURCE=$PWD/v8-build

    cross build --target "$TARGET"

    if [ ! -z "$DISABLE_TESTS" ]
    then return
    fi

    cross test --all --target "$TARGET"
}

# we don't run the "test phase" when doing deploys
if ! [ "$TRAVIS_REPO_SLUG" = 'dflemstr/rq' ] && ! [ "$TRAVIS_BRANCH" = 'master' ]
then main
fi

#!/bin/bash -ex
# This script takes care of testing your crate

main() {
    export V8_LIBS=$PWD/v8-build/lib/libv8uber.a
    export V8_SOURCE=$PWD/v8-build

    cross build --target "$TARGET"

    if [ ! -z "$DISABLE_TESTS" ]
    then return
    fi

    cross test --all --target "$TARGET"
}

# we don't run the "test phase" when doing deploys
if [ "$TRAVIS_REPO_SLUG" != 'dflemstr/rq' ] || [ "$TRAVIS_BRANCH" != 'master' ]
then main
fi

Fix strange conditional for when to run tests
Fix strange conditional for when to run tests
