<commit_before>stages:
  - build
  - dockerize build
  - release
  - deploy

variables:
  ECRHOST: "889199535989.dkr.ecr.us-east-1.amazonaws.com"

  DEV_SHORTREPO: "dpa-portal/dev/ctrl"
  DEV_REPOSITORY: "$ECRHOST/$DEV_SHORTREPO"

  PROD_SHORTREPO: "dpa-portal/prod/ctrl"
  PROD_REPOSITORY: "$ECRHOST/$PROD_SHORTREPO"

  VERSION: configs
  TERRAFORMERIMAGE: "889199535989.dkr.ecr.us-east-1.amazonaws.com/ticketmaster/terraformer:v0.8.8_cd"

# TODO add npm build and test tasks here
build:
  stage: build
  image: node:6.5.0
  tags:
    - tm-prod cicd build
  script:
    - NODE_ENV=development
    - apt-get update
    - apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs
    - apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    - gpg --keyserver hkp://keys.gnupg.net --recv-keys <KEY>
    - curl -sSL https://get.rvm.io | bash -s stable
    - source ~/.rvm/scripts/rvm
    - rvm install 2.2.4
    - rvm use 2.2.4 --default
    - ruby -v
    - npm install
    - npm run build
    - gem install github-pages
    - jekyll build
    - echo -e '*n!package.json' > .dockerignore
  artifacts:
    untracked: true
    expire_in: 1 day
  except:
    - tags
<commit_msg>add-ruby-install<commit_after>stages:
  - build
  - dockerize build
  - release
  - deploy

variables:
  ECRHOST: "889199535989.dkr.ecr.us-east-1.amazonaws.com"

  DEV_SHORTREPO: "dpa-portal/dev/ctrl"
  DEV_REPOSITORY: "$ECRHOST/$DEV_SHORTREPO"

  PROD_SHORTREPO: "dpa-portal/prod/ctrl"
  PROD_REPOSITORY: "$ECRHOST/$PROD_SHORTREPO"

  VERSION: configs
  TERRAFORMERIMAGE: "889199535989.dkr.ecr.us-east-1.amazonaws.com/ticketmaster/terraformer:v0.8.8_cd"

# TODO add npm build and test tasks here
build:
  stage: build
  image: node:6.5.0
  tags:
    - tm-prod cicd build
  script:
    - NODE_ENV=development
    - apt-get -y update
    - apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs
    - apt-get -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    - gpg --keyserver hkp://keys.gnupg.net --recv-keys <KEY>
    - curl -sSL https://get.rvm.io | bash -s stable
    - source ~/.rvm/scripts/rvm
    - rvm install 2.2.4
    - rvm use 2.2.4 --default
    - ruby -v
    - npm install
    - npm run build
    - gem install github-pages
    - jekyll build
    - echo -e '*n!package.json' > .dockerignore
  artifacts:
    untracked: true
    expire_in: 1 day
  except:
    - tags

{'fraction_non_alphanumeric': 0.11385408990420044, 'fraction_numerical': 0.03389830508474576, 'mean_word_length': 2.829337094499295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1013029', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1058, 'n_words': 225}