Merge pull request #20 from rtfd/appveyor

Add Windows builds
pull/23/head
Anthony 9 years ago
commit d4dd35a0e2

@ -0,0 +1,11 @@
build: false
environment:
matrix:
- PYTHON: "C:/Python27"
install:
- ps: (new-object net.webclient).DownloadFile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', 'C:/get-pip.py')
- "%PYTHON%/python.exe C:/get-pip.py"
test_script:
- "%PYTHON%/Scripts/pip.exe --version"
- "%PYTHON%/Scripts/pip.exe install tox"
- "%PYTHON%/Scripts/tox.exe -e py27"

@ -36,7 +36,7 @@ class DotNetSphinxMapper(SphinxMapperBase):
all_files.add(_file)
if all_files:
try:
command = ['docfx', 'metadata', '--raw', '--force']
command = ['bash', 'docfx', 'metadata', '--raw', '--force']
command.extend(all_files)
proc = subprocess.Popen(
' '.join(command),
@ -183,16 +183,16 @@ class DotNetSphinxMapper(SphinxMapperBase):
filename = obj.name.split('(')[0]
except IndexError:
filename = id
filename = filename.replace('#', '-')
filename = filename.replace('#', '-').replace('<', '-').replace('>', '')
detail_dir = os.path.join(root, *filename.split('.'))
ensuredir(detail_dir)
path = os.path.join(detail_dir, '%s%s' % ('index', source_suffix))
with open(path, 'wb+') as detail_file:
with open(path, 'wb') as detail_file:
detail_file.write(rst.encode('utf-8'))
# Render Top Index
top_level_index = os.path.join(root, 'index.rst')
with open(top_level_index, 'wb+') as top_level_file:
with open(top_level_index, 'wb') as top_level_file:
content = self.jinja_env.get_template('index.rst')
top_level_file.write(content.render(pages=self.namespaces.values()).encode('utf-8'))

@ -89,7 +89,7 @@ class DotNetTests(LanguageIntegrationTests):
def test_integration(self):
self._run_test(
'dotnetexample',
'_build/text/autoapi/Microsoft/AspNet/JsonPatch/Adapters/IObjectAdapter<TModel>/index.txt',
'_build/text/autoapi/Microsoft/AspNet/JsonPatch/Adapters/IObjectAdapter-TModel/index.txt',
'Defines the operations that can be performed on a JSON patch document.'
)

Loading…
Cancel
Save