1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 13:51:45 +03:00
guide/scripts/test-official.sh

27 lines
360 B
Bash
Raw Normal View History

#!/bin/bash
set -ev
# Test that the official database can be loaded
2016-04-11 13:14:34 +03:00
if [ -d state ]; then
mv state state-old
fi
git clone --depth 1 https://github.com/aelve/guide-database.git
mv guide-database state
2016-04-09 18:48:56 +03:00
cd state
git branch -v
git status
2016-04-11 13:14:34 +03:00
ls
2016-04-09 18:48:56 +03:00
cd ..
cabal build
dist/build/guide/guide --dry-run
2016-04-11 13:14:34 +03:00
rm -rf state
2016-04-11 13:14:34 +03:00
if [ -d state-old ]; then
mv state-old state
fi