Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 4, 2021
1 parent a028aff commit cd354c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ build:

.PHONY: acceptance
acceptance: build
(cd acceptance_tests/ && docker-compose down)
(cd acceptance_tests/ && docker-compose build)
(cd acceptance_tests/ && docker-compose up -d)
(cd acceptance_tests/ && docker-compose exec -T acceptance bash -c 'cd /acceptance_tests ; py.test -vv --color=yes --junitxml /tmp/junitxml/results.xml')
(cd acceptance_tests/ && docker-compose exec -T acceptance py.test -vv --color=yes --junitxml /tmp/junitxml/results.xml
(cd acceptance_tests/ && docker-compose down)

.PHONY: clean
clean:
rm -rf acceptance_tests/junitxml/
4 changes: 3 additions & 1 deletion acceptance_tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM camptocamp/c2cwsgiutils:5
FROM camptocamp/c2cwsgiutils:3

WORKDIR /acceptance_tests
COPY . ./

CMD ["tail", "-f", "/dev/null"]

ENV C2C_REQUESTS_DEFAULT_TIMEOUT=10
10 changes: 1 addition & 9 deletions acceptance_tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,4 @@ services:
- ./config/db/:/docker-entrypoint-initdb.d

acceptance:
image: camptocamp/c2cwsgiutils:3
command:
- tail
- -f
- /dev/null
volumes:
- .:/acceptance_tests
environment:
C2C_REQUESTS_DEFAULT_TIMEOUT: '10'
build: .

0 comments on commit cd354c8

Please sign in to comment.