Skip to content

Instantly share code, notes, and snippets.

@funnydman
Last active November 25, 2020 09:07
Show Gist options
  • Save funnydman/b0247fb3ce7430814325726fb03cc771 to your computer and use it in GitHub Desktop.
Save funnydman/b0247fb3ce7430814325726fb03cc771 to your computer and use it in GitHub Desktop.
Celery headless configuration for pipeline
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