Skip to content

Commit

Permalink
CI: Generate .c files using Cython in CI setups
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Riddell committed Oct 30, 2014
1 parent e2e35ee commit b7608e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -16,9 +16,10 @@ before_install:
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
install:
- conda create --yes -n testenv python=$TRAVIS_PYTHON_VERSION pip numpy scipy nose
- conda create --yes -n testenv python=$TRAVIS_PYTHON_VERSION pip numpy scipy nose Cython
- source activate testenv
- pip install --pre oslotest # needed until final release of oslotest?
- make cython
- python setup.py install

script: nosetests -w /tmp lda.tests
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -60,6 +60,7 @@ install:
- "%CMD_IN_ENV% pip install -r ./continuous_integration/appveyor/requirements.txt"
- "%CMD_IN_ENV% pip install -r requirements.txt"
- "%CMD_IN_ENV% pip install -r test-requirements.txt"
- "%CMD_IN_ENV% cython lda/_lda.pyx"
- "%CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst"
- ps: "ls dist"

Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Expand Up @@ -19,3 +19,4 @@ testtools>=0.9.34
numpydoc>=0.5
sphinx_rtd_theme>=0.1.6
flake8>=2.1.0
Cython>=0.19
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -10,7 +10,9 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = make
commands = make cython
python setup.py testr --slowest --testr-args='{posargs}'

[testenv:pep8]
commands = flake8
Expand Down

0 comments on commit b7608e3

Please sign in to comment.