sudo: required

language: generic

env:
  IMAGE_NAME: vhost-proxy:test
  # Only use seconds here, so that these can be used with "sleep" as well
  PROJECT_INACTIVITY_TIMEOUT: 30s
  PROJECT_DANGLING_TIMEOUT: 60s
  PROXY_DEBUG: 1
  DOCKSAL_VERSION: master

services:
  - docker

install:
  - sudo sudo curl -L https://raw.githubusercontent.com/docksal/docksal/${DOCKSAL_VERSION}/bin/fin -o /usr/local/bin/fin && sudo chmod +x /usr/local/bin/fin
  - fin version
  - fin update
  - fin docker build -t ${IMAGE_NAME} .
  - PROJECTS_ROOT=$TRAVIS_BUILD_DIR IMAGE_VHOST_PROXY=$IMAGE_NAME fin reset proxy
  - fin sysinfo

before_script:
  - .travis/before_script.sh

script:
  - bats tests/smoke-test.bats

sudo: required

language: generic

env:
  IMAGE_NAME: vhost-proxy:test
  # Only use seconds here, so that these can be used with "sleep" as well
  PROJECT_INACTIVITY_TIMEOUT: 30s
  PROJECT_DANGLING_TIMEOUT: 60s
  PROXY_DEBUG: 1
  DOCKSAL_VERSION: develop

services:
  - docker

install:
  - sudo sudo curl -L https://raw.githubusercontent.com/docksal/docksal/${DOCKSAL_VERSION}/bin/fin -o /usr/local/bin/fin && sudo chmod +x /usr/local/bin/fin
  - fin version
  - fin update
  - fin docker build -t ${IMAGE_NAME} .
  - PROJECTS_ROOT=$TRAVIS_BUILD_DIR IMAGE_VHOST_PROXY=$IMAGE_NAME fin system reset vhost-proxy
  - fin sysinfo

before_script:
  - .travis/before_script.sh

script:
  - bats tests/smoke-test.bats

Switch to dev version of Docksal
Switch to dev version of Docksal
