forked from qiskit-community/qiskit-jku-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 834 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
SHELL := /bin/bash
.PHONY: sim style lint test profile dist
sim:
cmake . -Bbuild -DSTATIC_LINKING=True
make -C build
# Ignoring generated ones with .py extension.
lint:
pylint -rn qiskit/backends/jku test_jku
style:
pycodestyle --max-line-length=100 qiskit/backends/jku test_jku
# Use the -s (starting directory) flag for "unittest discover" is necessary,
# otherwise the QuantumCircuit header will be modified during the discovery.
test:
python3 -m unittest discover -s test_jku -v
profile:
python3 -m unittest discover -p "profile*.py" -v
dist:
for env in py37 py36 py35 py34 ; do \
source activate $$env ; \
python setup.py bdist_wheel ; \
done