Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 76fa9be

Browse files
authored
Merge pull request #25 from startupturbo/option_run_on
"Full" / local tests in CirlceCI + a lot of improvements
2 parents 4ae4cd1 + 76b7d90 commit 76fa9be

12 files changed

+456
-340
lines changed

.circleci/config.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,29 @@ jobs:
1111
apt-get update && apt-get install -y sudo wget \
1212
&& wget get.docker.com -q -S -O - | sudo sh
1313
- checkout
14+
- setup_remote_docker
15+
- run:
16+
name: Install Docker client
17+
command: |
18+
set -x
19+
VER="17.03.0-ce"
20+
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
21+
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
22+
mv /tmp/docker/* /usr/bin
1423
- run:
1524
name: Tests
1625
command: |
17-
errcount=0; for f in tests/*.sh; do printf "$f\t\t" && bash "$f" -H; \
18-
status=$?; \
19-
if [ $status -ne 0 ]; then \
20-
errcount="$(($errcount+1))"; \
21-
fi; done;
22-
#[ $errcount -ne 0 ] && echo -e "Oh no! $errcount tests failed"
23-
#[ $errcount -ne 0 ] && exit 1
26+
errcount=0
27+
for f in tests/*.sh; do
28+
printf "$f\t\t"
29+
bash "$f" -H
30+
status=$?
31+
if [ $status -ne 0 ]; then
32+
errcount="$(($errcount+1))"
33+
fi
34+
done
35+
if [ $errcount -ne 0 ]; then
36+
>&2 echo "Oh no! $errcount tests failed"
37+
exit 1
38+
fi
2439

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.circleci/tmp
2+
./*.json
3+
./*.gz

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Description
2+
===
3+
Nancy helps to conduct automated database experiments.
4+
5+
The Nancy Command Line Interface is a unified way to manage database
6+
experiments.
7+
8+
Experiments are needed every time you:
9+
- add or remove indexes;
10+
- want to verify query optimization ideas;
11+
- need to tune database parameters;
12+
- want to perform performance/stress test for your DB;
13+
- are preparing to upgrade your DBMS to the new major version;
14+
- want to train ML model related to DB optimization.
15+
16+
Currently Nancy works only with PostgreSQL versions 9.6 and 10.
17+
18+
Requirements
19+
===
20+
To use Nancy CLI you need Linux or MacOS with installed Docker. If you plan
21+
to run experiments in AWS EC2 instances, you also need Docker Machine
22+
(https://docs.docker.com/machine/).
23+
24+
Installation
25+
===
26+
```bash
27+
git clone https://github.com/startupturbo/nancy
28+
echo "export PATH=\$PATH:"$(pwd)"/nancy" >> ~/.bashrc
29+
source ~/.bashrc
30+
```
31+
32+
Getting started
33+
===
34+
Start with these commands:
35+
```bash
36+
nancy help
37+
nancy run help
38+
```
39+

nancy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ case "$1" in
3333
if [ ! -f "${BASH_SOURCE%/*}/nancy_$1.sh" ]
3434
then
3535
>&2 echo "ERROR: Unknown command."
36+
>&2 echo "Try 'nancy help'"
3637
exit 1;
3738
fi
3839
cmd="${BASH_SOURCE%/*}/nancy_$1.sh"

0 commit comments

Comments
 (0)