sudo: required

addons:
  apt:
    packages:
      - docker-ce

services:
  - docker

install:
  - docker build -t libreconv .
  - docker run -d -p 8080:8080 libreconv

script:
  - curl -XPOST -F "file=@./testdata/example.docx" "http://localhost:8080/to/pdf?timeout=10s" -o /dev/null -v

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push $DOCKER_USERNAME/libreconv;
    fi
sudo: required

addons:
  apt:
    packages:
      - docker-ce

services:
  - docker

install:
  - docker build -t jgoelen/libreconv .
  - docker run -d -p 8080:8080 libreconv

script:
  - curl -XPOST -F "file=@./testdata/example.docx" "http://localhost:8080/to/pdf?timeout=10s" -o /dev/null -v

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push jgoelen/libreconv;
    fi
Add repo prefix to image name
Add repo prefix to image name
