<commit_before>image: alpine:latest

variables:
  HEROKU_APP_NAME: reddio-next

stages:
  - build
  - e2e
  - deploy

job_build_cljs:
  image: clojure:lein-2.7.1
  stage: build
  script:
    - lein cljsbuild once min
  artifacts:
    paths:
      - resources/public/js/compiled

job_build_js:
  image: node:6.10.0
  stage: build
  script:
    - ./scripts/install-yarn.sh
    - yarn install
    - npm run frontend:build
  artifacts:
    paths:
      - resources/public/js/compiled
      - resources/public/css/compiled

job_e2e:
  stage: e2e
  script:
    - cd resources/public/js && ls -la
  artifacts:
    paths:
      - resources/public

job_deploy_frontend:
  image: node:6.10.0
  stage: deploy
  environment:
    name: production
  only:
    - master
  script:
    - ./scripts/install-yarn.sh
    - yarn install -g firebase-tools
    - firebase deploy --token $FIREBASE_TOKEN

job_deploy_server:
  image: ruby:2.1
  stage: deploy
  environment:
    name: production
  only:
    - master
  script:
    - gem install dpl && dpl<commit_msg>Fix firebase tools install command<commit_after>image: alpine:latest

variables:
  HEROKU_APP_NAME: reddio-next

stages:
  - build
  - e2e
  - deploy

job_build_cljs:
  image: clojure:lein-2.7.1
  stage: build
  script:
    - lein cljsbuild once min
  artifacts:
    paths:
      - resources/public/js/compiled

job_build_js:
  image: node:6.10.0
  stage: build
  script:
    - ./scripts/install-yarn.sh
    - yarn install
    - npm run frontend:build
  artifacts:
    paths:
      - resources/public/js/compiled
      - resources/public/css/compiled

job_e2e:
  stage: e2e
  script:
    - cd resources/public/js && ls -la
  artifacts:
    paths:
      - resources/public

job_deploy_frontend:
  image: node:6.10.0
  stage: deploy
  environment:
    name: production
  only:
    - master
  script:
    - ./scripts/install-yarn.sh
    - yarn global add firebase-tools
    - firebase deploy --token $FIREBASE_TOKEN

job_deploy_server:
  image: ruby:2.1
  stage: deploy
  environment:
    name: production
  only:
    - master
  script:
    - gem install dpl && dpl
{'fraction_non_alphanumeric': 0.09747979077508322, 'fraction_numerical': 0.015216357584403234, 'mean_word_length': 2.460526315789474, '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': '53889', 'n_tokens_mistral': 793, 'n_tokens_neox': 764, 'n_words': 171}