Skip to content

Commit

Permalink
Added CI file, made work dir for docker container the repo to simplif…
Browse files Browse the repository at this point in the history
…y testing
  • Loading branch information
sean.narenthiran committed Jul 14, 2020
1 parent 213d55d commit 3c9fbc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
- docker

before_install:
- docker build -t seannaren/deepspeech .

script:
- docker run --ipc=host --entrypoint=/opt/conda/bin/pytest seannaren/deepspeech tests/"
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ WORKDIR /workspace/
RUN apt-get update -y
RUN apt-get install -y git curl ca-certificates bzip2 cmake tree htop bmon iotop sox libsox-dev libsox-fmt-all vim

# install python deps
RUN pip install cython visdom cffi tensorboardX wget jupyter

# install warp-CTC
ENV CUDA_HOME=/usr/local/cuda
RUN git clone https://github.com/SeanNaren/warp-ctc.git
Expand All @@ -29,5 +26,6 @@ ADD . /workspace/deepspeech.pytorch
RUN cd deepspeech.pytorch; pip install -r requirements.txt && pip install -e .

# launch jupyter
WORKDIR /workspace/deepspeech.pytorch
RUN mkdir data; mkdir notebooks;
CMD jupyter-notebook --ip="*" --no-browser --allow-root

0 comments on commit 3c9fbc3

Please sign in to comment.