language: minimal

sudo: required

services:
  - docker

dist: trusty

git:
  depth: 3

notifications:
  email: false

env:
  matrix:
    - PYTHON_VERSION=3.5
    - PYTHON_VERSION=3.6
    - PYTHON_VERSION=3.7

before_install: >
  docker build
    -t sklearn-porter
    --build-arg PYTHON_VERSION=${PYTHON_VERSION}
    --no-cache .

before_script:
  - docker run -d -t --name base sklearn-porter
  - docker exec -it base gcc --version
  - docker exec -it base java -version
  - docker exec -it base node --version
  - docker exec -it base go version
  - docker exec -it base php --version
  - docker exec -it base ruby --version
  - docker exec -it base python --version
  - docker exec -it base conda run -n sklearn-porter python --version

script: >
  docker exec -it base
    conda run -n sklearn-porter
      pytest tests -v -x -p no:doctest
        -o python_files="*Test.py"
        -o python_functions="test_*"

after_script: docker rm -f $(docker ps --filter name=base -q)

language: minimal

sudo: required

services:
  - docker

dist: trusty

git:
  depth: 3

notifications:
  email: false

env:
  matrix:
    - PYTHON_VERSION=3.5
    - PYTHON_VERSION=3.6
    - PYTHON_VERSION=3.7

before_install:
  docker build
    -t sklearn-porter
    --build-arg PYTHON_VERSION=${PYTHON_VERSION}
    --no-cache .

before_script:
  - docker run -d -t --name base sklearn-porter
  - docker exec -it base gcc --version
  - docker exec -it base java -version
  - docker exec -it base node --version
  - docker exec -it base go version
  - docker exec -it base php --version
  - docker exec -it base ruby --version
  - docker exec -it base python --version
  - docker exec -it base conda run -n sklearn-porter python --version

script:
  docker exec -it base
    conda run -n sklearn-porter
      pytest tests -v -x -p no:doctest
        -o python_files="*Test.py"
        -o python_functions="test_*"

after_script: docker rm -f $(docker ps --filter name=base -q)

Fix type of single command over multiple lines
feature/docker-test-environment: Fix type of single command over multiple lines
