##// END OF EJS Templates
nix: Add backwardsCompatibleFetchgit...
nix: Add backwardsCompatibleFetchgit Needed so that we can use fetchgit with the branch nixos-16.03 as well as current nixpkgs-unstable. It restores the behavior of nixos-16.03 which is technically wrong since it removes all .git files. Practically this issue has no big impact, so that we can keep it easily a few months this way until we don't depend on building against nixos-16.03 anymore.

File last commit:

r1:854a839a default
r716:4af5d93c default
Show More
test_vcs_operations.sh
27 lines | 924 B | application/x-sh | BashLexer
#!/bin/sh
set -e
SQLITE_DB_PATH=/mnt/hgfs/marcink-shared/workspace-python/rhodecode
RC_LOG=/tmp/rc.log
INI_FILE=test.ini
TEST_DB_NAME=rhodecode_test
for databaseName in p m s; do
# set the different DBs
if [ "$databaseName" = "s" ]; then
echo "sqlite"
rhodecode-config --filename=$INI_FILE --update '[app:main]sqlalchemy.db1.url=sqlite:///'$SQLITE_DB_PATH/$TEST_DB_NAME'.sqlite'
elif [ "$databaseName" = "p" ]; then
echo "postgres"
rhodecode-config --filename=$INI_FILE --update '[app:main]sqlalchemy.db1.url=postgresql://postgres:qweqwe@localhost/'$TEST_DB_NAME''
elif [ "$databaseName" = "m" ]; then
echo "mysql"
rhodecode-config --filename=$INI_FILE --update '[app:main]sqlalchemy.db1.url=mysql://root:qweqwe@localhost/'$TEST_DB_NAME''
fi
# running just VCS tests
RC_NO_TMP_PATH=1 py.test \
rhodecode/tests/other/test_vcs_operations.py
done