You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
842 B

  1. language: generic
  2. dist: focal
  3. services:
  4. - xvfb
  5. addons:
  6. chrome: stable
  7. before_install:
  8. - sudo apt-get install -y python3-pillow python3-numpy python3-pip mesa-utils libgl1-mesa-dri libglapi-mesa libosmesa6 python3-setuptools
  9. - sudo pip3 install selenium requests
  10. install:
  11. - CHROME_VERSION=`google-chrome --version | sed -r 's/Google Chrome ([0-9]+\.[0-9]+\.[0-9]+).*/\1/'`
  12. - LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}"`
  13. - curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
  14. - unzip chromedriver_linux64.zip
  15. - sudo mv chromedriver /usr/local/bin
  16. jobs:
  17. include:
  18. - stage: build
  19. script: python3 utils/build/build.py
  20. - stage: test
  21. script: xvfb-run -a python3 tests/run_tests.py