ref: 7b1d2b8eb0e3cf359e9f35c4659f1d210dac6376 mousikofidi/.builds/debian.yml -rw-r--r-- 1.4 KiB View raw
                                                                                
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
48
49
50
51
52
53
54
55
image: debian/stable
packages:
  # - npm
  - python3-pip
  - python3-yaml
secrets:
  - 070153b0-ef25-44ac-8a80-9864079c1eb0
  - 688f0848-0393-48ae-af1a-5403c0bd45d8
  - 80fe50f8-0cc9-47ab-88e6-43796572caaf
  - 9dfcd7d0-3043-424a-a664-588bada60817
sources:
  - https://git.sr.ht/~hristoast/mousikofidi
tasks:
  - install-requirements: |
      cd mousikofidi
      sudo pip3 install -r requirements.txt
  - install-dev-requirements: |
      cd mousikofidi
      sudo pip3 install -r dev-requirements.txt
  - setup-flake8: |
      mkdir ~/.config || printf OK
      cat > ~/.config/flake8 <<EOF
      [flake8]
      ignore = E501, E402, W503
      max-line-length = 160
      EOF
  - test-black: |
      cd mousikofidi
      make test-black
  # - test-css-is-minified: |
  #     sudo npm install -g yuicompressor
  #     cd mousikofidi
  #     make test-css-is-minified
  - test-flake8: |
      cd mousikofidi
      make test-flake8
  - test-pytest: |
      cd mousikofidi
      make test-pytest-verbose
  - test-build-dist: |
      cd mousikofidi
      make distribution-archive
  - test-install: |
      cd mousikofidi
      sudo pip3 install .
      mousikofidi --help
      mousikofidi-client --help
  - deploy-demo: |
      cat > ~/.ssh/known_hosts <<EOF
      $(cat ~/.fidi_known_hosts)
      EOF
      ssh -F ~/.fidi_demo_ssh_config demo ./update.sh
  - upload-to-pypi: |
      cd mousikofidi
      ./pypi-upload.sh