Skip to content

Commit

Permalink
Merge pull request #135 from sgerrand/doctests
Browse files Browse the repository at this point in the history
Test installation instructions
  • Loading branch information
sgerrand authored Feb 11, 2020
2 parents 0613c4d + 546b2f5 commit cbb1925
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -99,6 +115,7 @@ workflows:
filters:
tags:
only: /.*/
- doctests
- upload-master:
filters:
branches:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cbb1925

Please sign in to comment.