File: libbytesize-tasks.yml

package info (click to toggle)
libbytesize 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 788 kB
  • sloc: python: 1,854; ansic: 994; sh: 666; makefile: 258
file content (110 lines) | stat: -rw-r--r-- 2,997 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# ansible tasks for installing libbytesize dependencies,
# see install-test-dependencies.yml for usage

---
##### Fedora
- name: Install basic build tools (Fedora)
  package:
    state: present
    name:
      - gcc
      - make
      - libtool
      - autoconf
      - automake
  when: ansible_distribution == 'Fedora'

- name: Install dnf-plugins-core for dnf builddep (Fedora)
  package: name=dnf-plugins-core state=present
  when: ansible_distribution == 'Fedora'

- name: Install build dependencies (Fedora)
  command: "dnf -y builddep libbytesize --nogpgcheck"
  when: ansible_distribution == 'Fedora'

- name: Install test dependencies (Fedora)
  package:
    state: present
    name:
      - glibc-all-langpacks
      - python3-polib
      - python3-pocketlint
      - python3-pylint
      - python3-pycodestyle
  when: ansible_distribution == 'Fedora'

##### CentOS
- name: Install basic build tools (CentOS)
  package:
    state: present
    name:
      - gcc
      - make
      - libtool
      - autoconf
      - automake
  when: ansible_distribution == 'CentOS'

- name: Install dnf-plugins-core for dnf builddep (CentOS)
  package: name=dnf-plugins-core state=present
  when: ansible_distribution == 'CentOS'

- name: Install build dependencies (CentOS)
  command: "dnf -y builddep libbytesize --nogpgcheck"
  when: ansible_distribution == 'CentOS'

- name: Install test dependencies (CentOS)
  package:
    state: present
    name:
      - glibc-all-langpacks
      - python3-pip
  when: ansible_distribution == 'CentOS'

- name: Install pylint, polib, pycodestyle and pocketlint using pip (CentOS)
  pip:
    name: ['pylint', 'pycodestyle', 'polib', 'pocketlint']
    executable: pip3
  when: ansible_distribution == 'CentOS'

##### Debian/Ubuntu
- name: Install basic build tools (Debian/Ubuntu)
  package:
    state: present
    name:
      - gcc
      - make
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Add source repositories (Debian/Ubuntu)
  shell: "grep '^deb ' /etc/apt/sources.list | perl -pe 's/deb /deb-src /' >> /etc/apt/sources.list"
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Update apt cache (Debian/Ubuntu)
  apt:
    update_cache: yes
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Install build dependencies (Debian/Ubuntu)
  apt:
    name: libbytesize
    state: build-dep
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Install test dependencies (Debian/Ubuntu)
  package:
    state: present
    name:
      - locales-all
      - python3-polib
      - python3-pip
      - pycodestyle
      - pylint
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Install pocketlint using pip (Debian/Ubuntu)
  pip:
    name: ['pocketlint']
    executable: pip3
    extra_args: --break-system-packages
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'