diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ca48ac..bb710ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,6 +69,22 @@ jobs: - store_artifacts: destination: pkgs path: packages + doctests: + <<: *basic-job + docker: + - image: alpine:latest + steps: + - run: + name: Install required packages + command: apk add --no-cache git openssh-client + - checkout + - run: + name: Parse and run installation steps + command: | + while read line + do + echo "$line" | sed -e '/^[#:]/D' -e '/^$/D' -e '/^apk/p' -e '/^wget/p' -e '/^[A-z]/D' | sh -ex + done < README.md upload-master: <<: *upload-job steps: @@ -99,6 +115,7 @@ workflows: filters: tags: only: /.*/ + - doctests - upload-master: filters: branches: diff --git a/README.md b/README.md index d8fa871..55a0c7d 100644 --- a/README.md +++ b/README.md @@ -26,5 +26,7 @@ Any previous reference to `https://raw.githubusercontent.com/sgerrand/alpine-pkg You will need to generate your locale if you would like to use a specific one for your glibc application. You can do this by installing the `glibc-i18n` package and generating a locale using the `localedef` binary. An example for en_US.UTF-8 would be: + wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-bin-2.30-r0.apk + wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-i18n-2.30-r0.apk apk add glibc-bin-2.30-r0.apk glibc-i18n-2.30-r0.apk /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8