Last active
November 25, 2020 09:07
-
-
Save funnydman/b0247fb3ce7430814325726fb03cc771 to your computer and use it in GitHub Desktop.
Celery headless configuration for pipeline
This file contains hidden or 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
sudo: required | |
language: python | |
python: | |
- "3.6" | |
# command to install dependencies | |
install: | |
- pip install -r requirements.txt | |
# command to run tests | |
script: | |
- python manage.py behave | |
addons: | |
apt: | |
packages: | |
- firefox | |
- xvfb | |
before_script: | |
- export PATH=$PATH:. | |
- Xvfb :99 & | |
- export DISPLAY=:99 | |
- sleep 3 #wait a while before xvfb to start | |
after_script: | |
- kill -9 $(pgrep Xvfb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment