aboutsummaryrefslogtreecommitdiff
path: root/.builds/debian.yml
blob: 92583cd856c00721a58f11ee5993a2238cfb62ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: ubuntu/22.04
sources:
  - https://git.sr.ht/~cedric/newspipe
packages:
  - curl
  - build-essential
  - python3
  - python3-dev
  - python3-pip
  - python3-venv
  - libssl-dev
  - libbz2-dev
  - libreadline-dev
  - libsqlite3-dev
  - libncurses5-dev
  - libncursesw5-dev
  - libffi-dev
  - liblzma-dev
  - libxml2-dev
  - libxslt-dev
  - libpq-dev
  - llvm
  - python3-openssl
  - tk-dev
  - xz-utils
  - zlib1g-dev
environment:
  project: newspipe
tasks:
  - dependencies: |
      curl https://pyenv.run | bash
      export PYENV_ROOT="$HOME/.pyenv"
      export PATH="$PYENV_ROOT/bin:$PATH"
      eval "$(pyenv init --path)"
      pyenv install 3.10.0
      pyenv global 3.10.0
      pip install --user poetry
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      poetry install
  - lint: |
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      # stop the build if there are Python syntax errors or undefined names
      poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
      # exit-zero treats all errors as warnings.
      poetry run flake8 . --count --exit-zero --max-complexity=15 --max-line-length=105 --statistics
bgstack15