diff --git a/.gitignore b/.gitignore index 78fa93289f1b49631d7d5744b75f2c9b8135ae6d..4eea9edf56d34ed3000ca11d8d5d71530161c62d 100644 --- a/.gitignore +++ b/.gitignore @@ -65,6 +65,10 @@ ltfatpy.egg-info/ .project .pydevproject +# PyCharm # +########### +.idea + # Ipython files # ################# @@ -89,3 +93,4 @@ LtfatPyt.egg-info/ .cache/ dist/ MANIFEST + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ba32b5f077a868d7bfdf879b862813e78fe22bd..070115d4215bd32c7e283224a74da1c3032c2009 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,6 @@ stages: - build - test - - dist # Global runner/docker image definition image: ubuntu:latest @@ -30,29 +29,16 @@ build: tags: - docker script: - - python3 setup.py install + - pip3 install -e . # Tests test: stage: test tags: - docker + dependencies: + - build script: - - python3 setup.py test - artifacts: - when: always - untracked: true - paths: - - build/ - expire_in: 8d - -# Installation and test with pip -dist: - stage: dist - tags: - - docker - script: - - pip3 install -e . - nosetests artifacts: when: always @@ -60,3 +46,4 @@ dist: paths: - build/ expire_in: 8d + diff --git a/docker/Dockerfile b/docker/Dockerfile index 01cc733d4acbbab3926f05e21f18a96e8670e0ee..4065ceaead73eba3da106e714b592c518e5ddde0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,9 +10,6 @@ RUN apt-get update && apt-get install -y \ python3-pip \ python3-tk RUN pip3 install --upgrade pip -RUN pip3 install scipy matplotlib nose coverage Sphinx sphinxcontrib-bibtex -ADD ltfatpy-1.0.8.tar.gz / -#RUN pip3 install -e ltfatpy-1.0.8/ -#WORKDIR ltfatpy-1.0.8 -#RUN nosetests -#RUN python3 setup.py build_sphinx +RUN pip3 install scipy matplotlib nose coverage pytest pytest-cov Sphinx sphinxcontrib-bibtex +# cleanup +RUN apt-get -qy autoremove \ No newline at end of file diff --git a/docker/Dockerfile_cython b/docker/Dockerfile_cython index 99337eb84ed074fbd3bb729faa98d4c77bc04a3e..e21ee35e9dd432c774b581295d7be9112960ed19 100644 --- a/docker/Dockerfile_cython +++ b/docker/Dockerfile_cython @@ -1,15 +1,16 @@ -FROM debian:jessie +FROM ubuntu:latest MAINTAINER Denis Arrivault WORKDIR / RUN apt-get update && apt-get install -y \ cmake \ libfftw3-dev \ liblapack-dev \ - python \ - python-pip \ + python3 \ + python3-dev \ + python3-pip \ cython \ - python-matplotlib \ - gfortran -RUN pip install scipy coverage -ADD ltfatpy-1.0.0.tar.gz / -RUN pip install ltfatpy-1.0.0/ \ No newline at end of file + python3-tk +RUN pip3 install --upgrade pip +RUN pip3 install scipy matplotlib nose coverage pytest pytest-cov Sphinx sphinxcontrib-bibtex +# cleanup +RUN apt-get -qy autoremove \ No newline at end of file