mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
Test SQLite is now deleted through -c.
This commit is contained in:
parent
00ae0f2e93
commit
9d0c63a7c7
2 changed files with 7 additions and 5 deletions
5
dev.py
5
dev.py
|
|
@ -59,7 +59,7 @@ bash_commands = {
|
|||
'/srv/django-markdownx/manage.py runserver 0.0.0.0:8000"'
|
||||
),
|
||||
'docs': (
|
||||
'cd {}'.format(join_path(BASE_DIR, 'docs', 'src', '_theme', 'sphinx_rtd_theme')),
|
||||
'cd {}'.format(join_path(BASE_DIR, 'docs-src', '_theme', 'sphinx_rtd_theme')),
|
||||
'{python} setup.py clean install'.format(python=python_path),
|
||||
'cd ../..'
|
||||
),
|
||||
|
|
@ -195,7 +195,6 @@ def delete(abs_path, disp_path):
|
|||
remove(abs_path)
|
||||
except IOError as error:
|
||||
print('Failed to delete "{}"\n'.format(disp_path), error)
|
||||
sys_exit(1)
|
||||
|
||||
print('> REMOVED:', disp_path)
|
||||
return True
|
||||
|
|
@ -239,6 +238,8 @@ def clean():
|
|||
|
||||
delete(absolute_path, display_path)
|
||||
|
||||
delete(join_path(BASE_DIR, 'db.sqlite3'), 'db.sqlite3')
|
||||
|
||||
contents_xml.write(
|
||||
file_or_filename=XML_FILE_ABSOLUTE_PATH,
|
||||
xml_declaration=True,
|
||||
|
|
|
|||
7
dev.xml
7
dev.xml
|
|
@ -5,7 +5,7 @@
|
|||
config.vm.box = "bento/ubuntu-16.04"
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
config.vm.synced_folder "../django-markdownx", "/srv/django-markdownx", create: true
|
||||
config.vm.provision :shell, :path => "bootstrap.sh", privileged: false
|
||||
config.vm.provision :shell, :path => "bootstrap.sh", privileged: false
|
||||
config.vm.network :forwarded_port, guest: 8000, host: 8000
|
||||
config.vm.hostname = "django-markdownx"
|
||||
config.ssh.forward_agent = true
|
||||
|
|
@ -18,7 +18,8 @@
|
|||
"--ioapic", "on",
|
||||
"--cpus", "2"]
|
||||
end
|
||||
end</contents>
|
||||
end
|
||||
</contents>
|
||||
</file>
|
||||
<file for="vagrant"><path>bootstrap.sh</path>
|
||||
<contents>#!/usr/bin/env bash
|
||||
|
|
@ -94,7 +95,7 @@ echo -e '\e[33;1;5mDONE!\e[0m \e[33;1;3m Connect using "vagrant ssh" \e[0m'</con
|
|||
}
|
||||
}</contents>
|
||||
</file>
|
||||
<file for="vagrant;docker"><path>runtests.py</path>
|
||||
<file for="vagrant;docker;no-container"><path>runtests.py</path>
|
||||
<contents>from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
|
|
|
|||
Loading…
Reference in a new issue