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