<commit_before><commit_msg>Add travisCI.st for builderCI fallback<commit_after>| gitPath gitCache |
Transcript cr; show: 'travis---->travisCI.st'.

gitCache := 'git_cache'.
gitPath := (Smalltalk at: #'FileDirectory' ifAbsent: [  ])
  ifNil: [ ((Smalltalk at: #'FileSystem') workingDirectory / gitCache) pathString ]
  ifNotNil: [:fileDirectoryClass | (fileDirectoryClass default directoryNamed: gitCache ) fullName].

Metacello new
  baseline: 'SmalltalkCITests';
  repository: 'filetree://', gitPath, '/smalltalkCI/tests';
  get.

Metacello new
  baseline: 'SmalltalkCITests';
  repository: 'filetree://', gitPath, '/smalltalkCI/tests';
  load: 'default'.

"If e.g. your tests change code in the image dynamically, the image will require you to set 
author initials which might fail these tests. So we set some dummy initials here to avoid this."
(Smalltalk at: #MetacelloPlatform) current authorName: 'travisCI'.

"Run the tests"
TravisCIHarness
  value: #( 'BaselineOfSmalltalkCITests' )
  value: 'TravisCISuccess.txt'
  value: 'TravisCIFailure.txt'.
{'fraction_non_alphanumeric': 0.12155745489078823, 'fraction_numerical': 0.0, 'mean_word_length': 5.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '2050128', 'n_tokens_mistral': 342, 'n_tokens_neox': 341, 'n_words': 101}