Merge pull request #182 from pubs/fix/179
– handle / in citekeys – adds install testing as Travis Cron jobmain
commit
ce460b1613
@ -1,52 +1,97 @@
|
||||
# list of environments to test
|
||||
matrix:
|
||||
include:
|
||||
|
||||
# Full tests (with online API)
|
||||
- os: linux
|
||||
language: python
|
||||
python: 2.7
|
||||
env:
|
||||
- TO_TEST=TEST_FULL
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.7
|
||||
dist: xenial
|
||||
sudo: true
|
||||
env:
|
||||
- TO_TEST=TEST_FULL
|
||||
- os: osx
|
||||
language: generic
|
||||
python: 2.7
|
||||
env:
|
||||
- TO_TEST=TEST_FULL
|
||||
# before_install:
|
||||
# - python2 --version
|
||||
# - pip2 install -U virtualenv
|
||||
# - virtualenv env -p python2
|
||||
# - source env/bin/activate
|
||||
- os: osx
|
||||
language: generic
|
||||
python: ">=3.6"
|
||||
env:
|
||||
- TO_TEST=TEST_FULL
|
||||
before_install:
|
||||
- brew outdated python3 || brew install python3 || brew upgrade python3
|
||||
- python3 -m venv env
|
||||
- source env/bin/activate
|
||||
|
||||
# Mock tests (with mock API)
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.3
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.4
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.5
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.6
|
||||
env:
|
||||
- TO_TEST=TEST_MOCK
|
||||
|
||||
# Install tests
|
||||
- os: linux
|
||||
language: python
|
||||
python: 2.7
|
||||
env:
|
||||
- TO_TEST=INSTALL
|
||||
if: type = cron
|
||||
- os: linux
|
||||
language: python
|
||||
python: 3.7
|
||||
dist: xenial
|
||||
sudo: true
|
||||
python: 3.7
|
||||
env:
|
||||
- TO_TEST=INSTALL
|
||||
if: type = cron
|
||||
- os: osx
|
||||
language: generic
|
||||
python: 2.7
|
||||
before_install:
|
||||
- python2 --version
|
||||
- pip2 install -U virtualenv
|
||||
- virtualenv env -p python2
|
||||
- source env/bin/activate
|
||||
env:
|
||||
- TO_TEST=INSTALL
|
||||
if: type = cron
|
||||
- os: osx
|
||||
language: generic
|
||||
python: ">=3.6"
|
||||
before_install:
|
||||
- brew update
|
||||
- brew outdated python3 || brew install python3 || brew upgrade python3
|
||||
- python3 -m venv env
|
||||
- source env/bin/activate
|
||||
env:
|
||||
- TO_TEST=INSTALL
|
||||
if: type = cron
|
||||
|
||||
allow_failures:
|
||||
- python: 3.3
|
||||
|
||||
# command to install dependencies
|
||||
install:
|
||||
- python --version
|
||||
- export PUBS_TESTS_MODE=ONLINE
|
||||
|
||||
# command to run tests
|
||||
script:
|
||||
- PUBS_TESTS_MODE=MOCK python setup.py test
|
||||
- PUBS_TESTS_MODE=COLLECT python setup.py test
|
||||
- python --version
|
||||
- if [ "$TO_TEST" = "TEST_FULL" ]; then PUBS_TESTS_MODE=MOCK python setup.py test; fi
|
||||
- if [ "$TO_TEST" = "TEST_FULL" ]; then PUBS_TESTS_MODE=COLLECT python setup.py test; fi
|
||||
- if [ "$TO_TEST" = "TEST_MOCK" ]; then PUBS_TESTS_MODE=MOCK python setup.py test; fi
|
||||
- if [ "$TO_TEST" = "INSTALL" ]; then pip install -U pip && pip install pubs && pubs --help && pip uninstall -y pubs; fi
|
||||
|
@ -0,0 +1,41 @@
|
||||
@article{Einstein_1935,
|
||||
doi = {10.1103/physrev.47.777},
|
||||
url = {https://doi.org/10.1103%2Fphysrev.47.777},
|
||||
year = 1935,
|
||||
month = {may},
|
||||
publisher = {American Physical Society ({APS})},
|
||||
volume = {47},
|
||||
number = {10},
|
||||
pages = {777--780},
|
||||
author = {A. Einstein and B. Podolsky and N. Rosen},
|
||||
title = {Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?},
|
||||
journal = {Physical Review}
|
||||
}
|
||||
|
||||
@article{Schrodinger_1935,
|
||||
doi = {10.1017/s0305004100013554},
|
||||
url = {https://doi.org/10.1017%2Fs0305004100013554},
|
||||
year = 1935,
|
||||
month = {oct},
|
||||
publisher = {Cambridge University Press ({CUP})},
|
||||
volume = {31},
|
||||
number = {04},
|
||||
pages = {555},
|
||||
author = {E. Schrödinger and M. Born},
|
||||
title = {Discussion of Probability Relations between Separated Systems},
|
||||
journal = {Mathematical Proceedings of the Cambridge Philosophical Society}
|
||||
}
|
||||
|
||||
@article{Bell_1964,
|
||||
doi = {10.1103/physicsphysiquefizika.1.195},
|
||||
url = {https://doi.org/10.1103%2Fphysicsphysiquefizika.1.195},
|
||||
year = 1964,
|
||||
month = {nov},
|
||||
publisher = {American Physical Society ({APS})},
|
||||
volume = {1},
|
||||
number = {3},
|
||||
pages = {195--200},
|
||||
author = {J. S. Bell},
|
||||
title = {On the Einstein Podolsky Rosen paradox},
|
||||
journal = {Physics Physique {\cyrchar\cyrf}{\cyrchar\cyri}{\cyrchar\cyrz}{\cyrchar\cyri}{\cyrchar\cyrk}{\cyrchar\cyra}}
|
||||
}
|
@ -1,7 +1,11 @@
|
||||
1. Install the dependencies using:
|
||||
> pip install -r requirements.txt
|
||||
```
|
||||
pip install -r ../dev_requirements.txt
|
||||
```
|
||||
|
||||
2. Run the tests using:
|
||||
> python -m unittest discover
|
||||
```
|
||||
python setup.py test
|
||||
```
|
||||
|
||||
If you use nosetest, it will complain about addExpectedFailure, which you can safely disregard.
|
||||
If you use nosetest, it will complain about addExpectedFailure, which you can safely disregard.
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue