<commit_before>language: bash
services: docker

env:
  - VERSION=2 VARIANT=debian
  - VERSION=2 VARIANT=alpine
  - VERSION=1 VARIANT=debian
  - VERSION=1 VARIANT=alpine

install:
  - git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
  - env | sort
  - wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
  - cd "$VERSION/$VARIANT"
  - image="ghost:$VERSION-$VARIANT"

script:
  - |
    (
      set -Eeuo pipefail
      set -x
      docker build -t "$image" .
      ~/official-images/test/run.sh "$image"
    )

after_script:
  - docker images

# vim:set et ts=2 sw=2:
<commit_msg>Update travis.yml to test v3<commit_after>language: bash
services: docker

env:
  - VERSION=3 VARIANT=debian
  - VERSION=3 VARIANT=alpine
  - VERSION=2 VARIANT=debian
  - VERSION=2 VARIANT=alpine
  - VERSION=1 VARIANT=debian
  - VERSION=1 VARIANT=alpine

install:
  - git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
  - env | sort
  - wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
  - cd "$VERSION/$VARIANT"
  - image="ghost:$VERSION-$VARIANT"

script:
  - |
    (
      set -Eeuo pipefail
      set -x
      docker build -t "$image" .
      ~/official-images/test/run.sh "$image"
    )

after_script:
  - docker images

# vim:set et ts=2 sw=2:

{'fraction_non_alphanumeric': 0.14245216158752658, 'fraction_numerical': 0.010630758327427357, 'mean_word_length': 2.9005524861878453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7164321', 'n_tokens_mistral': 589, 'n_tokens_neox': 563, 'n_words': 102}