mirror of
https://github.com/quantum5/2048.git
synced 2025-04-24 04:21:58 -04:00
47 lines
852 B
YAML
47 lines
852 B
YAML
sudo: required
|
|
dist: bionic
|
|
language: python
|
|
services:
|
|
- xvfb
|
|
python:
|
|
- 2.7
|
|
- 3.6
|
|
- 3.7
|
|
- 3.8
|
|
- 3.9
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- xdotool
|
|
- wmctrl
|
|
- fluxbox
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
before_cache:
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
|
install:
|
|
- pip install codecov
|
|
- pip install -e .
|
|
before_script:
|
|
- fluxbox &
|
|
- sleep 3
|
|
script:
|
|
- timeout -k 30s 30s coverage run --source=_2048 -m _2048 &
|
|
- sleep 3
|
|
- >
|
|
xdotool search '2048: In Python!' windowactivate --sync
|
|
key --clearmodifiers Up
|
|
key --clearmodifiers Down
|
|
key --clearmodifiers Left
|
|
key --clearmodifiers Right
|
|
key --clearmodifiers Up
|
|
key --clearmodifiers Down
|
|
key --clearmodifiers Left
|
|
key --clearmodifiers Right
|
|
- sleep 10
|
|
- "wmctrl -F -c '2048: In Python!'"
|
|
- wait %3
|
|
after_script:
|
|
- codecov
|