Skip to content

Commit 64098d2

Browse files
committed
attempt #1 to get tests running in circle
we’ll end up adding a lot of this stuff back at the end. for now, let’s just only test python 35
1 parent 27d4177 commit 64098d2

File tree

3 files changed

+50
-33
lines changed

3 files changed

+50
-33
lines changed

circle.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,26 @@ dependencies:
1818

1919
override:
2020

21+
# Temporary workaround
22+
- mv plotly/graph_objs/graph_objs.py plotly/graph_objs/graph_objs_temp.py
23+
- touch plotly/graph_objs/graph_objs.py
24+
- mv plotly/graph_objs/graph_objs_temp.py plotly/graph_objs/graph_objs.py
25+
2126
# install everything tox knows about and the plotly package.
27+
- pip install -e .
2228
- pip install tox
2329
- tox --notest
30+
- python setup.py codegen
2431
- pip install -I .
32+
- jupyter nbextension enable --py widgetsnbextension
33+
- jupyter nbextension install --py --symlink --sys-prefix plotlywidget
34+
- jupyter nbextension enable --py --sys-prefix plotlywidget
2535

2636
# we need to cd out of the project root to ensure the install worked
2737
- cd ~ && python -c "import plotly"
2838

2939
# install jupyter test JS requirements
30-
- cd ${PLOTLY_JUPYTER_TEST_DIR} && npm i
40+
# - cd ${PLOTLY_JUPYTER_TEST_DIR} && npm i
3141

3242
cache_directories:
3343

dev-requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy
2+
pandas
3+
ipywidgets

tox.ini

+36-32
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ deps=
5757
requests==2.12.4
5858
six==1.10.0
5959
pytz==2016.10
60+
numpy
61+
pandas
62+
ipywidgets
63+
yapf
6064
optional: numpy==1.11.3
6165
optional: ipython[all]==5.1.0
6266
optional: jupyter==1.0.0
@@ -67,23 +71,23 @@ deps=
6771
optional: pyshp==1.2.10
6872

6973
; CORE ENVIRONMENTS
70-
[testenv:py27-core]
71-
basepython={env:PLOTLY_TOX_PYTHON_27:}
72-
commands=
73-
python --version
74-
nosetests {posargs} -x plotly/tests/test_core
75-
76-
[testenv:py33-core]
77-
basepython={env:PLOTLY_TOX_PYTHON_33:}
78-
commands=
79-
python --version
80-
nosetests {posargs} -x plotly/tests/test_core
81-
82-
[testenv:py34-core]
83-
basepython={env:PLOTLY_TOX_PYTHON_34:}
84-
commands=
85-
python --version
86-
nosetests {posargs} -x plotly/tests/test_core
74+
; [testenv:py27-core]
75+
; basepython={env:PLOTLY_TOX_PYTHON_27:}
76+
; commands=
77+
; python --version
78+
; nosetests {posargs} -x plotly/tests/test_core
79+
;
80+
; [testenv:py33-core]
81+
; basepython={env:PLOTLY_TOX_PYTHON_33:}
82+
; commands=
83+
; python --version
84+
; nosetests {posargs} -x plotly/tests/test_core
85+
;
86+
; [testenv:py34-core]
87+
; basepython={env:PLOTLY_TOX_PYTHON_34:}
88+
; commands=
89+
; python --version
90+
; nosetests {posargs} -x plotly/tests/test_core
8791

8892
[testenv:py35-core]
8993
basepython={env:PLOTLY_TOX_PYTHON_35:}
@@ -92,21 +96,21 @@ commands=
9296
nosetests {posargs} -x plotly/tests/test_core
9397

9498
; OPTIONAL ENVIRONMENTS
95-
[testenv:py27-optional]
96-
basepython={env:PLOTLY_TOX_PYTHON_27:}
97-
commands=
98-
python --version
99-
; Do some coverage reporting. No need to do this for all environments.
100-
mkdir -p {envbindir}/../../coverage-reports/{envname}
101-
coverage erase
102-
coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
103-
coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}
104-
105-
[testenv:py34-optional]
106-
basepython={env:PLOTLY_TOX_PYTHON_34:}
107-
commands=
108-
python --version
109-
nosetests {posargs} -x plotly/tests
99+
; [testenv:py27-optional]
100+
; basepython={env:PLOTLY_TOX_PYTHON_27:}
101+
; commands=
102+
; python --version
103+
; ; Do some coverage reporting. No need to do this for all environments.
104+
; mkdir -p {envbindir}/../../coverage-reports/{envname}
105+
; coverage erase
106+
; coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
107+
; coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}
108+
;
109+
; [testenv:py34-optional]
110+
; basepython={env:PLOTLY_TOX_PYTHON_34:}
111+
; commands=
112+
; python --version
113+
; nosetests {posargs} -x plotly/tests
110114

111115
[testenv:py35-optional]
112116
basepython={env:PLOTLY_TOX_PYTHON_35:}

0 commit comments

Comments
 (0)