<commit_before>language: go
go: 1.1

install:
  - go get bitbucket.org/liamstask/goose
  - go get github.com/lib/pq
  - go build

env:
  - DB=postgres
  - DB=mysql
  # - DB=sqlite

before_script: 
  
  # TODO make use of test specific database values once we refactor out SQLConf design
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database points;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -l -x -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database points;'; fi"
  - sh -c "/home/travis/gopath/bin/goose -path db/$DB -env test up"
  # - sh -c "if [ '$DB' = 'sqlite' ]; then sqlite3 points; fi"

script: go test<commit_msg>[travis] Kicking build<commit_after>language: go
go: 1.1

install:
  - go get bitbucket.org/liamstask/goose
  - go get github.com/lib/pq
  - go build

env:
  - DB=postgres
  - DB=mysql
  # - DB=sqlite

before_script: 
  
  # TODO make use of test specific database values once we refactor out SQLConf design
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database points;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database points;'; fi"
  - sh -c "/home/travis/gopath/bin/goose -path db/$DB -env test up"
  # - sh -c "if [ '$DB' = 'sqlite' ]; then sqlite3 points; fi"

script: go test
{'fraction_non_alphanumeric': 0.15378787878787878, 'fraction_numerical': 0.004545454545454545, 'mean_word_length': 2.795977011494253, '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': '2034461', 'n_tokens_mistral': 515, 'n_tokens_neox': 506, 'n_words': 169}