Skip to content

Commit 512a99b

Browse files
committed
fixup! Fix CI?
1 parent 32ffbe6 commit 512a99b

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

.travis.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Travis Configuration based on that used for rig_c_sa
22
sudo: false # Use the container based system
3-
language: generic # Make no assumptions about the environment
3+
language: python # Build under Python to avoid needing to compile Numpy
4+
python:
5+
- 2.7
6+
- 3.4
7+
- 3.5
48

59
# Install packages for building and running the test suite
610
addons:
@@ -10,43 +14,21 @@ addons:
1014
- valgrind
1115
- libffi-dev
1216

13-
# Test against a number of python versions
14-
env:
15-
matrix:
16-
- PYVER=2.7
17-
- PYVER=3.4
18-
- PYVER=3.5
19-
20-
2117
install:
22-
- git clone https://github.com/yyuu/pyenv.git ~/.pyenv
23-
- PYENV_ROOT="${HOME}/.pyenv"
24-
- PATH="$PYENV_ROOT/bin:$PATH"
25-
- eval "$(pyenv init -)"
26-
# Install the latest release of the specified Python version using pyenv.
27-
- PYVER="$(pyenv install --list | grep -E "^\\s*$PYVER" | sort -n -t. -k3 | tail -n1)"
28-
- echo "Selected Python $PYVER"
29-
- pyenv install $PYVER
30-
# Make the newly installed version the default "python" command.
31-
- pyenv global $PYVER
32-
- python --version
33-
# Install PIP
34-
- curl -O https://bootstrap.pypa.io/get-pip.py
35-
- python get-pip.py --user
3618
- pip install -r requirements-test.txt
3719

3820
script:
3921
# Run the C tests first
4022
- cd c_tests
4123
- make coverage
4224
- cd -
43-
# Then check that the package can be built and run the tests
25+
# Then check that the package can be built, and run the Python tests
4426
- python setup.py develop
4527
- >
4628
py.test py_tests \
4729
--cov rig_routing_tables \
4830
--cov tests
49-
- flake8 rig_routing_tables tests
31+
- flake8 rig_routing_tables py_tests
5032

5133
after_success:
5234
- bash <(curl -s https://codecov.io/bash)

rig_routing_tables/mtrie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def minimise(table, target_length):
2828
2929
[1]_ Ahmad, S. and Mahapatra, R.N., 2007. An efficient approach to on-chip
3030
logic minimization. *Very Large Scale Integration (VLSI) Systems, IEEE
31-
Transactions on*, 15(9), pp.1040-1050.
31+
Transactions on*, 15(9), pp.1040-1050.
3232
"""
3333
# Convert the table to C format and minimise
3434
c_table = rig_to_c_table(table)

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pep8]
2+
ignore = */__init__.py

0 commit comments

Comments
 (0)