Skip to content

Commit

Permalink
Merge 55898a3 into ebff819
Browse files Browse the repository at this point in the history
  • Loading branch information
QFer committed Nov 15, 2021
2 parents ebff819 + 55898a3 commit 62e44e8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,25 @@ install:
env:
- API_URL=https://staging.quantum-inspire.com
script:
- echo $TRAVIS_PULL_REQUEST
- echo $TRAVIS_BRANCH
- echo "running unit tests"
- coverage run --source="./src/quantuminspire" -m unittest discover -s src/tests -t src -v
- echo "running mypy"
- MYPYPATH=./src mypy --strict --ignore-missing-imports -p quantuminspire
- echo "running pylint"
- pylint quantuminspire || true
- echo "running examples"
- python ./docs/examples/example_projectq_entangle.py
- python ./docs/examples/example_projectq_grover.py
- python ./docs/examples/example_qiskit_conditional.py
- python ./docs/examples/example_qiskit_entangle.py
- echo "running notebooks"
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/example_projectq.ipynb
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/grover_algorithm_qi.ipynb
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/qi-performance-test.ipynb
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then
echo "running examples";
python ./docs/examples/example_projectq_entangle.py;
python ./docs/examples/example_projectq_grover.py;
python ./docs/examples/example_qiskit_conditional.py;
python ./docs/examples/example_qiskit_entangle.py;
echo "running notebooks";
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/example_projectq.ipynb;
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/grover_algorithm_qi.ipynb;
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/examples/qi-performance-test.ipynb;
fi
after_success:
- coveralls
deploy:
Expand Down

0 comments on commit 62e44e8

Please sign in to comment.