2016-04-08 18:33:33 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
# Test that the official database can be loaded
|
|
|
|
|
2016-04-11 13:14:34 +03:00
|
|
|
if [ -d state ]; then
|
2016-04-08 18:33:33 +03:00
|
|
|
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 ..
|
|
|
|
|
2017-01-31 03:54:23 +03:00
|
|
|
stack build $@
|
2016-10-16 20:21:57 +03:00
|
|
|
stack exec guide -- --dry-run
|
2016-04-08 18:33:33 +03:00
|
|
|
|
2016-04-11 13:14:34 +03:00
|
|
|
rm -rf state
|
2016-04-08 18:33:33 +03:00
|
|
|
|
2016-04-11 13:14:34 +03:00
|
|
|
if [ -d state-old ]; then
|
2016-04-08 18:33:33 +03:00
|
|
|
mv state-old state
|
|
|
|
fi
|