<commit_before>language: nix
sudo: true
matrix:
  allow_failures:
  - os: osx
    osx_image: xcode7.3
  - os: osx
    osx_image: xcode8
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/8bed8fb53227932886ab23e5f5f9eabe139f8e9f.tar.gz
cache:
  directories:
  #- "$HOME/.stack"
  #- "$HOME/build/input-output-hk/cardano-sl/.stack-work"
  # TODO: https://github.com/npm/fs-write-stream-atomic/pull/14
  #- daedalus/node_modules
  #- daedalus/bower_components

before_install:
- export CSL_SYSTEM_TAG=$TRAVIS_OS_NAME
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- sudo mount -o remount,exec,size=4G,mode=755 /run/user || true
# TODO: https://github.com/NixOS/nixpkgs/issues/21200
- travis_retry curl -L https://www.stackage.org/stack/$TRAVIS_OS_NAME-x86_64 | tar
  xz --strip-components=1 -C ~/.local/bin
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export EXTRA_STACK="--test --haddock"; else export EXTRA_STACK="--no-haddock-deps"; fi
- util-scripts/lint.sh
- stack --nix --no-terminal --local-bin-path daedalus/ install cardano-sl $EXTRA_STACK  --fast --ghc-options="-j +RTS -A128m -n2m -RTS" --jobs=4
  --flag cardano-sl:-asserts
  --flag cardano-sl-core:-dev-mode
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./update_haddock.sh; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./update_wallet_web_api_docs.sh; fi
- stack exec --nix -- cardano-wallet-hs2purs
- stack exec --nix -- cardano-wallet-web-docs
- pushd daedalus
- nix-shell --run "npm install && npm run build:prod"
- echo $TRAVIS_BUILD_NUMBER > build-id
- popd
- mkdir s3
- XZ_OPT=-1 tar Jcvf s3/daedalus-bridge.tar.xz daedalus/ >/dev/null 2>/dev/null
deploy:
  provider: s3
  access_key_id: <KEY>
  secret_access_key:
    secure: PtDmmCXYtnIvoR2j17TJNqdEtAWyeN1JN7x8Ecs47C/77lUxuHIJn/9iqyWYHRqkc0pJvanUHmYQY1dxQTHmIdcZwPaI7i9Hib5xEpi+1AKleZ4fTxiJ9Vt1V7cmCnx9HJ8KEmzbmrD9fPj5N2sl/ROYGWa+gNN89UsX462ms577jSBhdvJcaIeACbyEmnFDct0l5Hv23SF3Ciljiva+OLtSahuuhWjTmjb8kS/KjhU5Sl2uF5ZPsi9Xt7y9w3hvowQn/YCxz+161ekKDQkdWPaIYD0xawo6U5Z/GX3HGUYmZBZvlwEaCDa88dXrEfaxH9eYrRyRSuf93DIDMCdiWAWDf1vZBxYuTH8B88ptgjh9xGYMFdUtLq7sWtoMumYWsW8ldnImI1Y1zNdBXV0LrSmKV5Gy0E1cHYyv+rNCcR5tXBlkVOLRKnVLxA8XGfQjFCTQwaljarx7NKqToHzkOb9uiOvPyBvD6WQTYEeebzop/Uj6rFxOLjJ1Fb7xM6zeLkFktEThReDFefX34a8qzD6YnJuBbVTOvROoBC06I4FaBo5rwrpHe7tLohwxLASdhrCy/e6SMsehEOS+luwHNDEV95TnzcNDITqzKQHPdI1J0OYXEal3MkhYwYEtGuwnNDOEfd1nm+2BSw8L0F+pAyP/GBlnLUO9QVg+LWvKOfw=<commit_msg>Revert "Run the linter on Travis"<commit_after>language: nix
sudo: true
matrix:
  allow_failures:
  - os: osx
    osx_image: xcode7.3
  - os: osx
    osx_image: xcode8
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/8bed8fb53227932886ab23e5f5f9eabe139f8e9f.tar.gz
cache:
  directories:
  #- "$HOME/.stack"
  #- "$HOME/build/input-output-hk/cardano-sl/.stack-work"
  # TODO: https://github.com/npm/fs-write-stream-atomic/pull/14
  #- daedalus/node_modules
  #- daedalus/bower_components

before_install:
- export CSL_SYSTEM_TAG=$TRAVIS_OS_NAME
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- sudo mount -o remount,exec,size=4G,mode=755 /run/user || true
# TODO: https://github.com/NixOS/nixpkgs/issues/21200
- travis_retry curl -L https://www.stackage.org/stack/$TRAVIS_OS_NAME-x86_64 | tar
  xz --strip-components=1 -C ~/.local/bin
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export EXTRA_STACK="--test --haddock"; else export EXTRA_STACK="--no-haddock-deps"; fi
- stack --nix --no-terminal --local-bin-path daedalus/ install cardano-sl $EXTRA_STACK  --fast --ghc-options="-j +RTS -A128m -n2m -RTS" --jobs=4
  --flag cardano-sl:-asserts
  --flag cardano-sl-core:-dev-mode
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./update_haddock.sh; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./update_wallet_web_api_docs.sh; fi
- stack exec --nix -- cardano-wallet-hs2purs
- stack exec --nix -- cardano-wallet-web-docs
- pushd daedalus
- nix-shell --run "npm install && npm run build:prod"
- echo $TRAVIS_BUILD_NUMBER > build-id
- popd
- mkdir s3
- XZ_OPT=-1 tar Jcvf s3/daedalus-bridge.tar.xz daedalus/ >/dev/null 2>/dev/null
deploy:
  provider: s3
  access_key_id: <KEY>
  secret_access_key:
    secure: <KEY>
{'fraction_non_alphanumeric': 0.14412045889101338, 'fraction_numerical': 0.04947418738049713, 'mean_word_length': 4.4, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '2162890', 'n_tokens_mistral': 2080, 'n_tokens_neox': 1947, 'n_words': 265}