<commit_before>sudo: true
language: nix

matrix:
  include:
  - env: GHC_VERSION="ghc822"
  - env: GHC_VERSION="ghc842"
  - env: GHC_VERSION="ghcHEAD"

  allowed_failures:
  - env: GHC_VERSION="ghcHEAD"

script:
  - nix-build --argstr compiler $GHC_VERSION
  - nix-build generate --argstr compiler $GHC_VERSION<commit_msg>Get Travis to generate the source and rebuild it<commit_after>sudo: true
language: nix

matrix:
  include:
  - env: GHC_VERSION="ghc822"
  - env: GHC_VERSION="ghc842"
  - env: GHC_VERSION="ghcHEAD"

  allowed_failures:
  - env: GHC_VERSION="ghcHEAD"

before_install:
  - nix-store --realise $(nix-store --query --references  $(nix-instantiate --argstr compiler "ghc841"))
  - nix-store --realise $(nix-store --query --references  $(nix-instantiate generate --argstr compiler "ghc841"))
  - git clone --depth 1 https://github.com/KhronosGroup/Vulkan-Docs.git Vulkan-Docs

script:
  - nix-build --argstr compiler $GHC_VERSION
  - nix-build generate --argstr compiler $GHC_VERSION
  - ./generate.sh ./src/ ./vulkan.cabal Vulkan-Docs
  - nix-build --argstr compiler $GHC_VERSION
{'fraction_non_alphanumeric': 0.13412408759124086, 'fraction_numerical': 0.017335766423357664, 'mean_word_length': 3.708154506437768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '442729', 'n_tokens_mistral': 431, 'n_tokens_neox': 404, 'n_words': 91}