2018-03-28 04:30:18 +02:00
|
|
|
DB_HOST ?= `docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' opensupports-db`
|
|
|
|
|
|
|
|
install:
|
|
|
|
@apt-get install ruby-full
|
2018-04-12 03:10:28 +02:00
|
|
|
@apt-get install libmysqlclient-dev ruby-dev
|
2018-03-28 04:30:18 +02:00
|
|
|
@gem install bundler
|
|
|
|
@bundle install
|
|
|
|
|
2018-04-27 01:01:12 +02:00
|
|
|
run: export MYSQL_HOST=127.0.0.1
|
2018-11-29 19:38:07 +01:00
|
|
|
run: export MYSQL_PORT=4040
|
2018-03-28 04:30:18 +02:00
|
|
|
run:
|
|
|
|
./run-tests.sh
|
|
|
|
|
|
|
|
|
2018-04-27 01:01:12 +02:00
|
|
|
clear: export MYSQL_HOST=127.0.0.1
|
|
|
|
clear: export MYSQL_PORT=4040
|
2018-03-28 04:30:18 +02:00
|
|
|
clear:
|
2018-04-27 01:01:12 +02:00
|
|
|
./clean_db.sh && \
|
|
|
|
./clean_db.sh && \
|
|
|
|
./clean_db.sh
|