##// END OF EJS Templates
Installing Graphviz
Olesya Baranova -
Show More
@@ -1,53 +1,54 b''
1 # http://travis-ci.org/#!/ipython/ipython
1 # http://travis-ci.org/#!/ipython/ipython
2 language: python
2 language: python
3 python:
3 python:
4 - "nightly"
4 - "nightly"
5 - 3.6
5 - 3.6
6 - 3.5
6 - 3.5
7 - 3.4
7 - 3.4
8 - 3.3
8 - 3.3
9 sudo: false
9 sudo: false
10 env:
10 env:
11 global:
11 global:
12 - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
12 - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
13 group: edge
13 group: edge
14 before_install:
14 before_install:
15 - 'if [[ $GROUP != js* ]]; then COVERAGE=""; fi'
15 - 'if [[ $GROUP != js* ]]; then COVERAGE=""; fi'
16 install:
16 install:
17 - pip install setuptools pip --upgrade
17 - pip install setuptools pip --upgrade
18 - pip install -e file://$PWD#egg=ipython[test] --upgrade
18 - pip install -e file://$PWD#egg=ipython[test] --upgrade
19 - pip install codecov --upgrade
19 - pip install codecov --upgrade
20 - sudo apt-get install graphviz
20 script:
21 script:
21 - cd /tmp && iptest --coverage xml && cd -
22 - cd /tmp && iptest --coverage xml && cd -
22 # On the latest Python only, make sure that the docs build.
23 # On the latest Python only, make sure that the docs build.
23 - |
24 - |
24 if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
25 if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
25 pip install -r docs/requirements.txt
26 pip install -r docs/requirements.txt
26 make -C docs/ html
27 make -C docs/ html
27 fi
28 fi
28 after_success:
29 after_success:
29 - cp /tmp/ipy_coverage.xml ./
30 - cp /tmp/ipy_coverage.xml ./
30 - cp /tmp/.coverage ./
31 - cp /tmp/.coverage ./
31 - codecov
32 - codecov
32
33
33 matrix:
34 matrix:
34 allow_failures:
35 allow_failures:
35 - python: nightly
36 - python: nightly
36
37
37 before_deploy:
38 before_deploy:
38 - rm -rf dist/
39 - rm -rf dist/
39 - python setup.py sdist
40 - python setup.py sdist
40 - python setup.py bdist_wheel
41 - python setup.py bdist_wheel
41
42
42 deploy:
43 deploy:
43 provider: releases
44 provider: releases
44 api_key:
45 api_key:
45 secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns=
46 secure: Y/Ae9tYs5aoBU8bDjN2YrwGG6tCbezj/h3Lcmtx8HQavSbBgXnhnZVRb2snOKD7auqnqjfT/7QMm4ZyKvaOEgyggGktKqEKYHC8KOZ7yp8I5/UMDtk6j9TnXpSqqBxPiud4MDV76SfRYEQiaDoG4tGGvSfPJ9KcNjKrNvSyyxns=
46 file: dist/*
47 file: dist/*
47 file_glob: true
48 file_glob: true
48 skip_cleanup: true
49 skip_cleanup: true
49 on:
50 on:
50 repo: ipython/ipython
51 repo: ipython/ipython
51 all_branches: true # Backports are released from e.g. 5.x branch
52 all_branches: true # Backports are released from e.g. 5.x branch
52 tags: true
53 tags: true
53 python: 3.6 # Any version should work, but we only need one
54 python: 3.6 # Any version should work, but we only need one
@@ -1,83 +1,83 b''
1 @ECHO OFF
1 @ECHO OFF
2 REM ~ Windows command line make file for Sphinx documentation
2 REM ~ Windows command line make file for Sphinx documentation
3
3
4 SETLOCAL
4 SETLOCAL
5
5
6 SET SPHINXOPTS=
6 SET SPHINXOPTS=
7 SET SPHINXBUILD=sphinx-build
7 SET SPHINXBUILD=sphinx-build
8 SET PAPER=
8 SET PAPER=
9 SET SRCDIR=source
9 SET SRCDIR=source
10 SET PYTHON=python
10 SET PYTHON=python
11
11
12 IF "%PAPER%" == "" SET PAPER=a4
12 IF "%PAPER%" == "" SET PAPER=a4
13 SET ALLSPHINXOPTS=-d build\doctrees -D latex_paper_size=%PAPER% %SPHINXOPTS% %SRCDIR%
13 SET ALLSPHINXOPTS=-d build\doctrees -D latex_paper_size=%PAPER% -D graphviz_dot="C:\Program Files (x86)\Graphviz2.38\bin\dot.exe" %SPHINXOPTS% %SRCDIR%
14
14
15 FOR %%X IN (%SPHINXBUILD%.exe) DO SET P=%%~$PATH:X
15 FOR %%X IN (%SPHINXBUILD%.exe) DO SET P=%%~$PATH:X
16
16
17 FOR %%L IN (html html_noapi pickle htmlhelp latex changes linkcheck) DO (
17 FOR %%L IN (html html_noapi pickle htmlhelp latex changes linkcheck) DO (
18 IF "%1" == "%%L" (
18 IF "%1" == "%%L" (
19 IF "%P%" == "" (
19 IF "%P%" == "" (
20 ECHO.
20 ECHO.
21 ECHO Error: Sphinx is not available. Please make sure it is correctly installed.
21 ECHO Error: Sphinx is not available. Please make sure it is correctly installed.
22 GOTO END
22 GOTO END
23 )
23 )
24 MD build\doctrees 2>NUL
24 MD build\doctrees 2>NUL
25 MD build\%1 || GOTO DIR_EXIST
25 MD build\%1 || GOTO DIR_EXIST
26 %PYTHON% autogen_config.py && ECHO Created docs for config options
26 %PYTHON% autogen_config.py && ECHO Created docs for config options
27 %PYTHON% autogen_magics.py && ECHO Created docs for line ^& cell magics
27 %PYTHON% autogen_magics.py && ECHO Created docs for line ^& cell magics
28 %PYTHON% autogen_shortcuts.py && ECHO Created docs for shortcuts
28 %PYTHON% autogen_shortcuts.py && ECHO Created docs for shortcuts
29 IF NOT "%1" == "html_noapi" (
29 IF NOT "%1" == "html_noapi" (
30 %PYTHON% autogen_api.py && ECHO Build API docs finished
30 %PYTHON% autogen_api.py && ECHO Build API docs finished
31 %SPHINXBUILD% -b %1 %ALLSPHINXOPTS% build\%1
31 %SPHINXBUILD% -b %1 %ALLSPHINXOPTS% build\%1
32 ) ELSE (
32 ) ELSE (
33 %SPHINXBUILD% -b html %ALLSPHINXOPTS% build\%1
33 %SPHINXBUILD% -b html %ALLSPHINXOPTS% build\%1
34 )
34 )
35 IF NOT ERRORLEVEL 0 GOTO ERROR
35 IF NOT ERRORLEVEL 0 GOTO ERROR
36 ECHO.
36 ECHO.
37 ECHO Build finished. Results are in build\%1.
37 ECHO Build finished. Results are in build\%1.
38 IF "%1" == "pickle" (
38 IF "%1" == "pickle" (
39 ECHO Now you can process the pickle files or run
39 ECHO Now you can process the pickle files or run
40 ECHO sphinx-web build\pickle to start the sphinx-web server.
40 ECHO sphinx-web build\pickle to start the sphinx-web server.
41 )
41 )
42 IF "%1" == "htmlhelp" (
42 IF "%1" == "htmlhelp" (
43 ECHO Now you can run HTML Help Workshop with the
43 ECHO Now you can run HTML Help Workshop with the
44 ECHO .hhp project file in build/htmlhelp.
44 ECHO .hhp project file in build/htmlhelp.
45 )
45 )
46 IF "%1" == "linkcheck" (
46 IF "%1" == "linkcheck" (
47 ECHO Look for any errors in the above output
47 ECHO Look for any errors in the above output
48 ECHO or in build\linkcheck\output.rst.
48 ECHO or in build\linkcheck\output.rst.
49 )
49 )
50 GOTO END
50 GOTO END
51 )
51 )
52 )
52 )
53
53
54
54
55 IF "%1" == "clean" (
55 IF "%1" == "clean" (
56 RD /s /q build dist %SRCDIR%\api\generated 2>NUL
56 RD /s /q build dist %SRCDIR%\api\generated 2>NUL
57 IF ERRORLEVEL 0 ECHO Build environment cleaned!
57 IF ERRORLEVEL 0 ECHO Build environment cleaned!
58 GOTO END
58 GOTO END
59 )
59 )
60
60
61 ECHO.
61 ECHO.
62 ECHO Please use "make [target]" where [target] is one of:
62 ECHO Please use "make [target]" where [target] is one of:
63 ECHO.
63 ECHO.
64 ECHO html to make standalone HTML files
64 ECHO html to make standalone HTML files
65 ECHO html_noapi same as above, without the time consuming API docs
65 ECHO html_noapi same as above, without the time consuming API docs
66 ECHO jsapi to make standalone HTML files for the Javascript API
66 ECHO jsapi to make standalone HTML files for the Javascript API
67 ECHO pickle to make pickle files (usable by e.g. sphinx-web)
67 ECHO pickle to make pickle files (usable by e.g. sphinx-web)
68 ECHO htmlhelp to make HTML files and a HTML help project
68 ECHO htmlhelp to make HTML files and a HTML help project
69 ECHO latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
69 ECHO latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
70 ECHO changes to make an overview over all changed/added/deprecated items
70 ECHO changes to make an overview over all changed/added/deprecated items
71 ECHO linkcheck to check all external links for integrity
71 ECHO linkcheck to check all external links for integrity
72 GOTO END
72 GOTO END
73
73
74 :DIR_EXIST
74 :DIR_EXIST
75 ECHO.
75 ECHO.
76 ECHO Info: Run "make clean" to clean build environment
76 ECHO Info: Run "make clean" to clean build environment
77
77
78 :ERROR
78 :ERROR
79 ECHO.
79 ECHO.
80 ECHO Error: Build process failed!
80 ECHO Error: Build process failed!
81
81
82 :END
82 :END
83 ENDLOCAL No newline at end of file
83 ENDLOCAL
General Comments 0
You need to be logged in to leave comments. Login now