Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 20, 2017
1 parent 5c09f23 commit df071f0
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 63 deletions.
86 changes: 86 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
- v1-dependencies-

- run:
name: Install pandoc
command: |
sudo apt-get update
wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
- run:
name: Install tex
command: |
sudo apt-get install -y texlive
sudo apt-get install -y texlive-latex-extra
- run:
name: Install 7z, unrar
command: |
sudo apt-get install -y p7zip-full
- run:
name: Install InkScape
command: |
sudo apt-get install -y inkscape
- run:
name: Install graphviz
command: |
sudo apt-get install -y graphviz
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install git+https://github.com/sdpython/sphinxcontrib-images.git --upgrade --no-deps
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

- run:
name: run tests
command: |
. venv/bin/activate
python setup.py unittests
- run:
name: wheel
command: |
. venv/bin/activate
python setup.py bdist_wheel
mkdir -p test-reports/dist
cp dist/*.whl test-reports/dist
- run:
name: documentation
command: |
. venv/bin/activate
python setup.py build_sphinx
- run:
name: copy documentation
command: |
mkdir -p test-reports/doc
cp -r _doc/sphinxdoc/build/html test-reports/doc
- store_artifacts:
path: test-reports
destination: test-reports
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ README
:target: https://ci.appveyor.com/project/sdpython/pyensae
:alt: Build Status Windows

.. image:: https://badge.fury.io/py/pyensae.svg
:target: http://badge.fury.io/py/pyensae
.. image:: https://circleci.com/gh/sdpython/pyensae/tree/master.svg?style=svg
:target: https://circleci.com/gh/sdpython/pyensae/tree/master

.. image:: https://badge.fury.io/py/cpyquickhelper.svg
:target: http://badge.fury.io/py/cpyquickhelper

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:alt: MIT License
Expand Down
3 changes: 3 additions & 0 deletions _doc/sphinxdoc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pyensae documentation
:target: https://ci.appveyor.com/project/sdpython/pyensae
:alt: Build Status Windows

.. image:: https://circleci.com/gh/sdpython/pyensae/tree/master.svg?style=svg
:target: https://circleci.com/gh/sdpython/pyensae/tree/master

.. image:: https://badge.fury.io/py/pyensae.svg
:target: http://badge.fury.io/py/pyensae

Expand Down
87 changes: 26 additions & 61 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,93 +1,58 @@
ansi2html
ansiconv
antlr4-python3-runtime
autopep8
azure
babel!=2.0
blockdiag
brewer2mpl
chardet
cloud-sptheme
codecov
bokeh
colormap
coverage
Cython
docformatter
dbfread
docutils
easydev
flake8
Flask
Flask-SQLAlchemy
folium
goslate
hachibee-sphinx-theme
ipykernel
ipyparallel
ipython
ipython_genutils
ipywidgets
Jinja2
jsonschema
jupyter
jupyter_client
jupyter_core
jupyter-client
jupyter_sphinx
jyquickhelper
keyring
lxml
Markdown
MarkupSafe
Mako
matplotlib
mccabe
mistune
nbconvert>=5.0.0
nbformat
notebook
numpy
nbpresent
nbsphinx
notebook>=5.0.0
numpy>=1.11.1
openpyxl
pandas
pandas>=0.20.0
pandas_datareader
path.py
pep8
pickleshare
pkgtools
pycodestyle
pycparser
pandocfilters
paramiko
pillow
pycodestyle>=2.0.0
pycrypto
pycryptodomex
pydocstyle
pyflakes
Pygments
pymyinstall
pyparsing
pyquickhelper
pyreadline
python-dateutil
pyquickhelper>1.5.2122
python-jenkins
python3-linkedin
pytz
PyYAML
pyzmq
qtconsole
quandl
requests
requests-oauthlib
simplegeneric
simplejson
six
solar-theme
semantic_version
setuptools
Sphinx
sphinx-bootstrap-theme
sphinxcontrib.youtube
sphinxcontrib-fancybox
sphinx-gallery
sphinx-rtd-theme
sphinxcontrib-images
sphinxcontrib-imagesvg
sphinxcontrib-jsdemo
sphinxjp.themes.basicstrap
sphinxjp.themes.revealjs
sphinxjp.themes.sphinxjp
sphinx-readable-theme
sphinx-rtd-theme
traitlets
urllib3
tqdm
unify
virtualenv
Werkzeug
wheel
wild-sphinx-theme
xlrd
XlsxWriter
xmltodict

0 comments on commit df071f0

Please sign in to comment.