<commit_before># adapted from https://github.com/andysworkshop/stm32plus/blob/master/.travis.yml

branches:
  only:
  - master
  - devel
  - /^fw-v/

language: c
sudo: false

addons:
  apt:
    packages:
      libc6-i386

cache:
  directories:
  - "$HOME/dl"

install:
# - export GCC_DIR=$HOME/dl/gcc-arm-none-eabi-5_2-2015q4
# - export GCC_ARCHIVE=$HOME/dl/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
# - export GCC_URL=https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major/+download/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
# - if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME/dl; fi
# - export PATH=$PATH:$GCC_DIR/bin

- export GCC_DIR=$HOME/dl/gcc-arm-none-eabi-7-2017-q4-major
- export GCC_ARCHIVE=$HOME/dl/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME/dl; fi
- export PATH=$PATH:$GCC_DIR/bin

- export TUP_VER=tup_0.7.8-3~16.04.york0_amd64
- export TUP_DIR=$HOME/dl/$TUP_VER
- export TUP_ARCHIVE=$HOME/dl/$TUP_VER.deb
- export TUP_URL=http://ppa.launchpad.net/jonathonf/tup/ubuntu/pool/main/t/tup/$TUP_VER.deb
- if [ ! -e $TUP_DIR/bin/tup ]; then wget $TUP_URL -O $TUP_ARCHIVE; dpkg-deb -R $TUP_ARCHIVE $TUP_DIR; fi
- export PATH=$PATH:$TUP_DIR/usr/bin

env:
  # Build default configuration for each board
  - CONFIG_BOARD_VERSION=v3.2 DEPLOY=v3.2
  - CONFIG_BOARD_VERSION=v3.3 DEPLOY=v3.3
  - CONFIG_BOARD_VERSION=v3.4-24V DEPLOY=v3.4-24V
  - CONFIG_BOARD_VERSION=v3.4-48V DEPLOY=v3.4-48V
  - CONFIG_BOARD_VERSION=v3.5-24V DEPLOY=v3.5-24V
  - CONFIG_BOARD_VERSION=v3.5-48V DEPLOY=v3.5-48V
  - CONFIG_BOARD_VERSION=v3.6-24V DEPLOY=v3.6-24V
  - CONFIG_BOARD_VERSION=v3.6-56V DEPLOY=v3.6-56V

  # Various protocol combinations
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=native-stream CONFIG_UART_PROTOCOL=native
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=stdout CONFIG_UART_PROTOCOL=stdout
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=none CONFIG_UART_PROTOCOL=none

script:
- "./Firmware/build.sh"

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  skip_cleanup: true
  file_glob: true
  file: Firmware/deploy/*
  on:
    repo: madcowswe/ODrive
    branch: master
    tags: true
<commit_msg>attempt to fix travis build<commit_after># adapted from https://github.com/andysworkshop/stm32plus/blob/master/.travis.yml

branches:
  only:
  - master
  - devel
  - /^fw-v/

language: c
sudo: false

addons:
  apt:
    packages:
      - libc6-i386
      - python3
      - python3-yaml
      - python3-jinja2
      - python3-jsonschema

cache:
  directories:
  - "$HOME/dl"

install:
# - export GCC_DIR=$HOME/dl/gcc-arm-none-eabi-5_2-2015q4
# - export GCC_ARCHIVE=$HOME/dl/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
# - export GCC_URL=https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major/+download/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
# - if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME/dl; fi
# - export PATH=$PATH:$GCC_DIR/bin

- export GCC_DIR=$HOME/dl/gcc-arm-none-eabi-7-2017-q4-major
- export GCC_ARCHIVE=$HOME/dl/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME/dl; fi
- export PATH=$PATH:$GCC_DIR/bin

- export TUP_VER=tup_0.7.8-3~16.04.york0_amd64
- export TUP_DIR=$HOME/dl/$TUP_VER
- export TUP_ARCHIVE=$HOME/dl/$TUP_VER.deb
- export TUP_URL=http://ppa.launchpad.net/jonathonf/tup/ubuntu/pool/main/t/tup/$TUP_VER.deb
- if [ ! -e $TUP_DIR/bin/tup ]; then wget $TUP_URL -O $TUP_ARCHIVE; dpkg-deb -R $TUP_ARCHIVE $TUP_DIR; fi
- export PATH=$PATH:$TUP_DIR/usr/bin

env:
  # Build default configuration for each board
  - CONFIG_BOARD_VERSION=v3.2 DEPLOY=v3.2
  - CONFIG_BOARD_VERSION=v3.3 DEPLOY=v3.3
  - CONFIG_BOARD_VERSION=v3.4-24V DEPLOY=v3.4-24V
  - CONFIG_BOARD_VERSION=v3.4-48V DEPLOY=v3.4-48V
  - CONFIG_BOARD_VERSION=v3.5-24V DEPLOY=v3.5-24V
  - CONFIG_BOARD_VERSION=v3.5-48V DEPLOY=v3.5-48V
  - CONFIG_BOARD_VERSION=v3.6-24V DEPLOY=v3.6-24V
  - CONFIG_BOARD_VERSION=v3.6-56V DEPLOY=v3.6-56V

  # Various protocol combinations
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=native-stream CONFIG_UART_PROTOCOL=native
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=stdout CONFIG_UART_PROTOCOL=stdout
  #- CONFIG_BOARD_VERSION=v3.4-24V CONFIG_USB_PROTOCOL=none CONFIG_UART_PROTOCOL=none

script:
- "./Firmware/build.sh"

deploy:
  provider: releases
  api_key:
    secure: RM66joGTn11Z5PmG7Nlj8cRcVY0w7ga5qUl2ahinbDm6jMV8OxroaXKivEa478alx9fygMHVeKdJZUlrAkRJ5OYJ1trfpW+43S3OYEnfy1nyXEXRwhgeIlb9LqdrumXVAp7TZ0Vppfom8A2ZWbxKxW3lG/EAmA4G9fnxHf0S9rF0y95YVfGrxdapTKcxvbP7Yojo53474ZI6+VYrqx8lq0JAnn4FwNT9ZJ1QASrmIw4w08f60XXv25BzndCTscvLb2qUu0AaGLbQUosde0Bb7P+aQsBVY6uSkg9MWV8gWPQjtO3u5IRR1bTshxf2kPqtzwK+SpcYrddoGN6BkKAB3lVorJIW5VguUkRmtPZ1K9+NhIztNevB2qr0ASutumNLF3aqMt19KL3A+SRx6froj5VhRHf4i/Xjm3SDLTaTcc8ZIh2PEE6scUMUMs5Mzu8LQWjInRe25MSb+pQB1mNOHmoFBtVb0J3u7Nvs8jdImN5gQWvvowWXfXRNE0ncT1YsLmevwi3q+YdEjpAIPnrD/rouY8WaqQZ/vE15JM9uwdQRqKAbzGtMaKHDk7EZ7ANTyaP+UrQ/M5cVDa0bWsWSvqSqDJMy4IVHRlirYA/5u74lXNhmA8DGDB/gFVlVCmoEzas/pnYiAE1hh4RpsYxts78Ix+wbeo1hmt7t65X8cyo=
  skip_cleanup: true
  file_glob: true
  file: Firmware/deploy/*
  on:
    repo: madcowswe/ODrive
    branch: master
    tags: true

{'fraction_non_alphanumeric': 0.1326459279972038, 'fraction_numerical': 0.07689619014330654, 'mean_word_length': 4.358614232209738, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '283989', 'n_tokens_mistral': 3032, 'n_tokens_neox': 2744, 'n_words': 296}