mirror of https://github.com/openXC7/prjxray.git
Make ignored wires database specific and have travis be aware of python.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
5bce5a31b8
commit
32e66e38dd
14
.travis.yml
14
.travis.yml
|
|
@ -1,10 +1,9 @@
|
||||||
language: cpp
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Job 1) Test C++ w/ GCC
|
# Job 1) Test C++ w/ GCC
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
language: cpp
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
|
|
@ -22,12 +21,21 @@ matrix:
|
||||||
# Job 2) Lint checks on Python and C++
|
# Job 2) Lint checks on Python and C++
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
language: python
|
||||||
|
python: 3.6
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- clang-format-3.9
|
- clang-format-3.9
|
||||||
|
- g++-6
|
||||||
install:
|
install:
|
||||||
- pip3 install --user -r requirements.txt
|
- export CC=gcc-6
|
||||||
|
- export CXX=g++-6
|
||||||
|
- pip install -r requirements.txt
|
||||||
script:
|
script:
|
||||||
|
- export CC=gcc-6
|
||||||
|
- export CXX=g++-6
|
||||||
- make format
|
- make format
|
||||||
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
|
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,5 @@ python3 create_node_tree.py \
|
||||||
--ordered_wires_root_dir ../072-ordered_wires/specimen_001/ \
|
--ordered_wires_root_dir ../072-ordered_wires/specimen_001/ \
|
||||||
--output_dir output
|
--output_dir output
|
||||||
python3 reduce_site_types.py --output_dir output
|
python3 reduce_site_types.py --output_dir output
|
||||||
python3 generate_grid.py --root_dir specimen_001/ --output_dir output
|
python3 generate_grid.py --root_dir specimen_001/ --output_dir output \
|
||||||
|
--ignored_wires ${XRAY_DATABASE}_ignored_wires.txt
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import os.path
|
||||||
import json
|
import json
|
||||||
import datetime
|
import datetime
|
||||||
import pickle
|
import pickle
|
||||||
import inspect
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -561,6 +560,7 @@ def main():
|
||||||
parser.add_argument('--root_dir', required=True)
|
parser.add_argument('--root_dir', required=True)
|
||||||
parser.add_argument('--output_dir', required=True)
|
parser.add_argument('--output_dir', required=True)
|
||||||
parser.add_argument('--verify_only', action='store_true')
|
parser.add_argument('--verify_only', action='store_true')
|
||||||
|
parser.add_argument('--ignored_wires')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
@ -648,9 +648,7 @@ def main():
|
||||||
json.dump(error_nodes, f, indent=2)
|
json.dump(error_nodes, f, indent=2)
|
||||||
|
|
||||||
ignored_wires = []
|
ignored_wires = []
|
||||||
path_to_file = os.path.dirname(
|
ignored_wires_file = args.ignored_wires
|
||||||
os.path.abspath(inspect.getfile(inspect.currentframe())))
|
|
||||||
ignored_wires_file = os.path.join(path_to_file, 'ignored_wires.txt')
|
|
||||||
if os.path.exists(ignored_wires_file):
|
if os.path.exists(ignored_wires_file):
|
||||||
with open(ignored_wires_file) as f:
|
with open(ignored_wires_file) as f:
|
||||||
ignored_wires = set(l.strip() for l in f)
|
ignored_wires = set(l.strip() for l in f)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue