Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmakarov committed Jan 12, 2020
2 parents cb1db66 + bb31ba3 commit 04ff6a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ dist: bionic
language: minimal

env:
DOCKSAL_VERSION: develop
# Setting these while testing locally may result in data loss, so only use in CI.
PROJECT_INACTIVITY_TIMEOUT: 30s
PROJECT_DANGLING_TIMEOUT: 60s
global:
- DOCKSAL_VERSION=develop
# Setting these while testing locally may result in data loss, so only use in CI.
- PROJECT_INACTIVITY_TIMEOUT=30s
- PROJECT_DANGLING_TIMEOUT=60s

install:
# Install Docksal to have a matching versions of Docker on the build host
Expand All @@ -22,7 +23,6 @@ script:
- make
- make start
- make exec -e CMD="env" # Views env variables picked up by proxy
- make exec -e CMD="ls -la /projects" # View the contents of the /projects folder
- make test

after_success:
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
DOCKER ?= docker

ifeq ($(VERSION),)
VERSION = dev
LATEST_VERSION = $(VERSION)
VERSION = dev
LATEST_VERSION = $(VERSION)
endif

TAG ?= $(VERSION)
BUILD_TAG ?= $(VERSION)

REPO = docksal/vhost-proxy
NAME = docksal-vhost-proxy
Expand Down Expand Up @@ -36,15 +36,15 @@ ARGS = $(filter-out $@,$(MAKECMDGOALS))
default: build

build:
$(DOCKER) build -t $(REPO):$(TAG) .
$(DOCKER) build -t $(REPO):$(BUILD_TAG) .

test:
# Create test projects before starting tests. This allows using "fin @project" aliases in tests.
tests/create_test_projects.sh
IMAGE=$(REPO):$(TAG) tests/test.bats
IMAGE=$(REPO):$(BUILD_TAG) tests/test.bats

push:
$(DOCKER) push $(REPO):$(TAG)
$(DOCKER) push $(REPO):$(BUILD_TAG)

conf-vhosts:
make exec -e CMD='cat /etc/nginx/conf.d/vhosts.conf'
Expand All @@ -55,7 +55,7 @@ start: clean
mkdir -p $(PROJECTS_ROOT)
# Copy custom certs used in cert tets
cp -R tests/certs ~/.docksal
IMAGE_VHOST_PROXY=$(REPO):$(TAG) fin system reset vhost-proxy
IMAGE_VHOST_PROXY=$(REPO):$(BUILD_TAG) fin system reset vhost-proxy
# Give vhost-proxy a bit of time to initialize
sleep ${DELAY}
# Stop crond, so it does not interfere with tests
Expand Down Expand Up @@ -93,7 +93,7 @@ clean:
rm -f ~/.docksal/certs/example.com.*

release:
@scripts/release.sh
@scripts/docker-push.sh

# https://stackoverflow.com/a/6273809/1826109
%:
Expand Down

0 comments on commit 04ff6a6

Please sign in to comment.