Skip to content

Commit

Permalink
add travis and docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr authored and scottransom committed Nov 12, 2019
1 parent eb78f7c commit 1423a24
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 2 deletions.
64 changes: 64 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
*.[oa]
*.so
*.dylib
*.pyc
*~
.DS_Store
TAGS
*egg-info
lib/fftw_wisdom.txt
bin/GBT350filterbank
bin/accelsearch
bin/bary
bin/bincand
bin/cal2mjd
bin/check_parkes_raw
bin/dat2sdat
bin/dftfold
bin/downsample
bin/dump_spigot_zerolag
bin/exploredat
bin/explorefft
bin/fitsdelcol
bin/fitsdelrow
bin/makedata
bin/makeinf
bin/mjd2cal
bin/mpiprepsubband
bin/patchdata
bin/plotbincand
bin/prepdata
bin/prepfold
bin/prepsubband
bin/psrorbit
bin/psrfits_dumparrays
bin/quicklook
bin/readfile
bin/realfft
bin/rednoise
bin/rfifind
bin/sdat2dat
bin/search_bin
bin/search_rzw
bin/shiftdata
bin/show_pfd
bin/spigot2filterbank
bin/spigotSband2filterbank
bin/split_parkes_beams
bin/swap_endian
bin/taperaw
bin/toas2dat
bin/un_sc_td
bin/weight_psrfits
bin/window
bin/zapbirds
lib/python/ppgplot/
lib/python/presto/
python/build/
src/slalib/sla_test
src/makewisdom
src/fftw_wisdom.txt
MANIFEST
.venv*/
dist/
.mypy_cache/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ src/fftw_wisdom.txt
MANIFEST
.venv*/
dist/

.mypy_cache/
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: python
matrix:
include:
- env: TARGET=py2
- env: TARGET=py3
- env: TARGET=pep8
- env: TARGET=mypy
allow_failures:
- env: TARGET=pep8
- env: TARGET=mypy
sudo: required
services:
- docker
before_install:
- true
install:
- docker build . -t ${TARGET} -f .travis/${TARGET}.docker
before_script:
- true
script:
- true
7 changes: 7 additions & 0 deletions .travis/mypy.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM kernsuite/base:4
RUN docker-apt-install python3-pip
RUN pip3 install mypy
ADD . /code
WORKDIR /code
RUN mypy --ignore-missing-imports python

7 changes: 7 additions & 0 deletions .travis/pep8.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM kernsuite/base:4
RUN docker-apt-install python3-pip
RUN pip3 install pycodestyle
ADD . /code
WORKDIR /code
RUN pycodestyle python --ignore=E501

19 changes: 19 additions & 0 deletions .travis/py2.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM kernsuite/base:4
RUN docker-apt-install \
python-pip \
python-numpy \
python-future \
python-six \
python-scipy \
python-astropy \
gfortran \
pgplot5 \
libx11-dev \
libglib2.0-dev \
libcfitsio-dev \
libpng-dev \
libfftw3-dev
RUN docker-apt-install pgplot5
ADD . /code
RUN pip install /code

18 changes: 18 additions & 0 deletions .travis/py3.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM kernsuite/base:4
RUN docker-apt-install \
python3-pip \
python3-numpy \
python3-future \
python3-six \
python3-scipy \
python3-astropy \
gfortran \
pgplot5 \
libx11-dev \
libglib2.0-dev \
libcfitsio-dev \
libpng-dev \
libfftw3-dev
ADD . /code
RUN pip3 install /code

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ppgplot_libraries = ["cpgplot", "pgplot", "X11", "png", "m"]
ppgplot_library_dirs = ["/usr/X11R6/lib"]

presto_libraries = ["presto", "fftw3f", "m"]
presto_libraries = ["fftw3f", "m"]
presto_library_dirs = []

ppgplot_include_dirs = include_dirs
Expand Down

0 comments on commit 1423a24

Please sign in to comment.