Dockerfile.ci & debug-ci now build working container for CI test image
This commit is contained in:
@@ -5,3 +5,6 @@ steps:
|
||||
- "pip install -r requirements.txt"
|
||||
- "cd ./src"
|
||||
- "python manage.py test apps"
|
||||
|
||||
- name: test-FTs
|
||||
|
||||
|
||||
8
Dockerfile.ci
Normal file
8
Dockerfile.ci
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
COPY requirements.dev.txt requirements.dev.txt
|
||||
RUN pip install -r requirements.dev.txt
|
||||
RUN apt update -y && apt install -y firefox-esr
|
||||
|
||||
COPY infra/debug-ci.py debug-ci.py
|
||||
CMD ["python", "debug-ci.py"]
|
||||
5
infra/debug-ci.py
Normal file
5
infra/debug-ci.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from selenium import webdriver
|
||||
|
||||
options = webdriver.FirefoxOptions()
|
||||
options.add_argument("--headless")
|
||||
webdriver.Firefox(options=options).quit()
|
||||
@@ -29,7 +29,10 @@ def wait(fn):
|
||||
class FunctionalTest(StaticLiveServerTestCase):
|
||||
# Helper methods
|
||||
def setUp(self):
|
||||
self.browser = webdriver.Firefox()
|
||||
options = webdriver.FirefoxOptions()
|
||||
if os.environ.get("HEADLESS"):
|
||||
options.add_argument("--headless")
|
||||
self.browser = webdriver.Firefox(options=options)
|
||||
self.test_server = os.environ.get("TEST_SERVER")
|
||||
if self.test_server:
|
||||
self.live_server_url = 'http://' + self.test_server
|
||||
|
||||
Reference in New Issue
Block a user