Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson authored Jun 17, 2024
1 parent 13945e2 commit be87a5d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Run this script in a container image based on this `Dockerfile`:

```
FROM cypress/included:9.7.0
RUN apt-get update; \
apt-get install -y libicu67
RUN npm install -g inline-assets
```

This script runs the test:

```bash
cd EndToEndTest
cypress run > output.txt
RESULT=$?

if [[ -f mochawesome.html ]]
then
inline-assets \
mochawesome.html selfcontained.html
new_octopusartifact \
"${PWD}/selfcontained.html" "selfcontained.html"
fi

if [[ -d cypress/screenshots/sample_spec.js ]]
then
zip -r \
screenshots.zip \
cypress/screenshots/sample_spec.js
new_octopusartifact \
"${PWD}/screenshots.zip" "screenshots.zip"
fi

exit ${RESULT}
```

0 comments on commit be87a5d

Please sign in to comment.