<commit_before>#!/usr/bin/env ruby

require 'fileutils'

def system cmd, *args
  print "==> ", cmd, " ", *args.join(' '), "\n"
  raise "error" unless Kernel.system cmd, *args
end

system 'python3', 'build.py', '-v'
FileUtils.cd 'build'
system './starcheat.py', '-v' 
# run some other unit test here
unless ENV['TRAVIS_BUILD_ID'].nil? || ENV['TRAVIS_SECURE_ENV_VARS'] == 'false'
  FileUtils.mv '../mac/setup.py', '.'
  system 'python3', 'setup.py', 'py2app'
  system '/usr/local/Cellar/qt5/5.2.1/bin/macdeployqt', 'dist/starcheat.app', '-verbose=2'
  FileUtils.mv 'dist/starcheat.app', 'StarCheat.app'
  system 'StarCheat.app/Contents/MacOS/starcheat', '-v'
  system 'tar', 'czf', 'starcheat.tar.gz', 'StarCheat.app'<commit_msg>travis.rb: use opt_prefix for macdeployqt which is alway symlinked to the current qts prefix (if I dont mess up the cache creation)<commit_after>#!/usr/bin/env ruby

require 'fileutils'

def system cmd, *args
  print "==> ", cmd, " ", *args.join(' '), "\n"
  raise "error" unless Kernel.system cmd, *args
end

system 'python3', 'build.py', '-v'
FileUtils.cd 'build'
system './starcheat.py', '-v' 
# run some other unit test here
unless ENV['TRAVIS_BUILD_ID'].nil? || ENV['TRAVIS_SECURE_ENV_VARS'] == 'false'
  FileUtils.mv '../mac/setup.py', '.'
  system 'python3', 'setup.py', 'py2app'
  system '/usr/local/opt/qt5/bin/macdeployqt', 'dist/starcheat.app', '-verbose=2'
  FileUtils.mv 'dist/starcheat.app', 'StarCheat.app'
  system 'StarCheat.app/Contents/MacOS/starcheat', '-v'
  system 'tar', 'czf', 'starcheat.tar.gz', 'StarCheat.app'
{'fraction_non_alphanumeric': 0.19385796545105566, 'fraction_numerical': 0.008317338451695458, 'mean_word_length': 4.468531468531468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4841292', 'n_tokens_mistral': 617, 'n_tokens_neox': 599, 'n_words': 138}