sudo: required language: node_js node_js: - 14 services: - docker branches: only: - main - test - travis_docker_testing env: - DOCKER_COMPOSE_VERSION=1.25.5 cache: directories: - docker_images before_install: - sudo rm /usr/local/bin/docker-compose - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose - chmod +x docker-compose - sudo mv docker-compose /usr/local/bin - docker load -i docker_images/images.tar || true - cd docker/travis before_cache: - docker save -o docker_images/images.tar $(docker images -a -q) # install: # - docker build -t hnakamur/example . script: - ./run-tests.sh