This repository has been archived by the owner on Aug 20, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1ff396
commit c01d855
Showing
3 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:2 | ||
|
||
WORKDIR /app | ||
|
||
ENV BASE_URL "https://www-dev.allizom.org" | ||
ENV BROWSER_NAME Firefox | ||
ENV BROWSER_VERSION 39.0 | ||
ENV PLATFORM "Windows 7" | ||
ENV SELENIUM_VERSION 2.47.1 | ||
ENV SAUCE_CREDENTIALS_PATH /tmp/creds | ||
ENV BUILD_TAG docker | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
COPY requirements.txt /app/requirements.txt | ||
RUN pip install -r requirements.txt pytest-xdist | ||
|
||
COPY . /app | ||
|
||
CMD ["./run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
py.test -r=fsxXR --verbose -n 15 \ | ||
--baseurl=${BASE_URL} \ | ||
--browsername="${BROWSER_NAME}" \ | ||
--browserver=${BROWSER_VERSION} \ | ||
--platform="${PLATFORM}" \ | ||
--junitxml=results/results.xml \ | ||
--saucelabs=${SAUCE_CREDENTIALS_PATH} \ | ||
--capability="selenium-version:${SELENIUM_VERSION}" \ | ||
--build=${BUILD_TAG} \ | ||
tests |