<commit_before>steps:

# build generator  
- id: build_generator
  name: 'gcr.io/cloud-builders/gradle'
  args: ['build']
  dir: 'generator'
- id: dockerize_generator
  name: 'gcr.io/cloud-builders/docker'
  args: ['build', '-t', 'gcr.io/lofty-totality-214401/kgen', '.']
  dir: 'generator'

# build examples
- id: example_key
  name: 'ubuntu'
  args: ['bash', '-c', 'touch app/src/main/res/raw/sa.json']
  dir: 'examples'
  waitFor: ['-']
- id: build_examples
  name: 'gcr.io/lofty-totality-214401/example-builder'
  args: []
  dir: 'examples'
  waitFor:
    - example_key

# TODO:
# run example tests
# - id: examples_tester
#   name: 'gcr.io/cloud-builders/gcloud'
#   args: ["firebase", "test", "android", "run", "--app", "app/build/outputs/apk/debug/app-debug.apk", "--test", "app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk"]
#   dir: 'examples'
#   waitFor:
#     - build_examples

# spin up showcase server and run tests
- id: start_showcase
  name: 'docker/compose:1.15.0'
  args: ['up', '-d']
  dir: 'showcase-test'
  waitFor: ['-']
- name: 'gcr.io/cloud-builders/gradle'
  args: ['build']
  dir: 'showcase-test'
  env:
  - 'HOST=showcase'
  - 'PORT=7469'
  waitFor: 
    - start_showcase
    - build_generator

timeout: 1200s
<commit_msg>save image<commit_after>steps:

# build generator  
- id: build_generator
  name: 'gcr.io/cloud-builders/gradle'
  args: ['build']
  dir: 'generator'
- id: dockerize_generator
  name: 'gcr.io/cloud-builders/docker'
  args: ['build', '-t', 'gcr.io/lofty-totality-214401/kgen', '.']
  dir: 'generator'

# build examples
- id: example_key
  name: 'ubuntu'
  args: ['bash', '-c', 'touch app/src/main/res/raw/sa.json']
  dir: 'examples'
  waitFor: ['-']
- id: build_examples
  name: 'gcr.io/lofty-totality-214401/example-builder'
  args: []
  dir: 'examples'
  waitFor:
    - example_key

# TODO:
# run example tests
# - id: examples_tester
#   name: 'gcr.io/cloud-builders/gcloud'
#   args: ["firebase", "test", "android", "run", "--app", "app/build/outputs/apk/debug/app-debug.apk", "--test", "app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk"]
#   dir: 'examples'
#   waitFor:
#     - build_examples

# spin up showcase server and run tests
- id: start_showcase
  name: 'docker/compose:1.15.0'
  args: ['up', '-d']
  dir: 'showcase-test'
  waitFor: ['-']
- name: 'gcr.io/cloud-builders/gradle'
  args: ['build']
  dir: 'showcase-test'
  env:
  - 'HOST=showcase'
  - 'PORT=7469'
  waitFor: 
    - start_showcase
    - build_generator

images: ['gcr.io/lofty-totality-214401/kgen']

timeout: 1200s

{'fraction_non_alphanumeric': 0.18619084561675717, 'fraction_numerical': 0.02094647013188518, 'mean_word_length': 3.5087412587412588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5782394', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1020, 'n_words': 195}