Parent directory

config.yml

1618 bytes
 1version: 2
 2
 3
 4test: &test
 5  steps:
 6    - checkout
 7    - run:
 8        name: setup tzdata
 9        command: |
10          export DEBIIAN_FRONTEND=noninteractive
11          export TZ=Etc/UTC
12          ln -fs /usr/share/zoneinfo/$TZ /etc/localtime
13          echo $TZ > /etc/timezone
14    - run:
15        name: Install Dependencies
16        command: >
17          apt-get update &&
18          apt-get install -y
19          zsh
20          pipx
21          python3-pip
22          python3-virtualenv
23          curl
24          ncurses-bin
25          git
26          pwgen
27    - run:
28        name: install pipenv
29        command: pipx install pipenv
30    - run:
31        name: Download Zunit
32        command: |
33          mkdir -p ~/bin
34          curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > ~/bin/revolver
35          curl -L https://github.com/molovo/zunit/releases/download/v0.8.2/zunit > ~/bin/zunit
36          chmod u+x ~/bin/{revolver,zunit}
37    - run:
38        name: Run Zunit
39        command: |
40          # Required by pipenv to work correctly
41          export LC_ALL=C.UTF-8
42          export LANG=C.UTF-8
43          export TERM="xterm-256color"  # Required by tput
44          export PATH="$HOME/bin:$PATH"
45          zunit --verbose
46
47
48jobs:
49  lint:
50    docker:
51      - image: "python:3.14"
52    steps:
53      - checkout
54      - run:
55          name: run restructuredtext linter
56          command: |
57            pip install restructuredtext_lint
58            rst-lint *.rst
59
60  test-zsh:
61      docker:
62        - image: "ubuntu:latest"
63      <<: *test
64
65workflows:
66  version: 2
67  test:
68    jobs:
69      - lint
70      - test-zsh