<commit_before>
# Initial Travic-CI control file. 6.5.15 jhrg
# Updated many times... finally using docker (containers). 7.14.15 jhrg

dist: trusty

sudo: false

language: cpp

compiler: gcc

branches:
  only:
  - master
  - coverity_scan
  - travis

addons:
  ssh_known_hosts: www.opendap.org
  coverity_scan:
    project:
      name: "OPENDAP/libdap4"
    notification_email: <EMAIL>
    build_command: "make -j7"
    branch_pattern: coverity_scan
  apt:
    packages:
    - libxml2-dev
    - uuid-dev
    - libcurl4-openssl-dev
    - libcppunit-dev
    
env:
  global:
  - prefix=$TRAVIS_BUILD_DIR/install
  - PATH=$prefix/bin:$PATH
  # COVERITY_SCAN_TOKEN, created via the "travis encrypt" command using the project repo's public key
  - secure: "<KEY>
  # AWS_ACCESS_KEY_ID for the user 'travis'
  - secure: "<KEY>
  # AWS_SECRET_ACCESS_KEY
  - secure: "<KEY>

before_install:
- sudo apt-get update -qq
- pip install --user awscli
- ./ecr_credentials.sh

# hyrax-dependencies-build.tar.gz includes/makes the build directory
install:
- aws s3 sync s3://opendap.travis.build/hyrax-dependencies-build.tar.gz $TRAVIS_BUILD_DIR
- tar -C $TRAVIS_BUILD_DIR -xzvf hyrax-dependencies-build.tar.gz

before_script:
- printenv
- autoreconf --force --install --verbose
- ./configure --disable-dependency-tracking --prefix=$prefix --enable-developer --enable-asan

jobs:
  include:
  - stage: build
    script: if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make -j7 && make check -j7 && make install; fi
  - stage: build
    script: if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make distcheck -j7; fi

before_deploy:
- mkdir $TRAVIS_BUILD_DIR/package
- tar -C $TRAVIS_BUILD_DIR -czvf $TRAVIS_BUILD_DIR/package/libdap-build.tar.gz --exclude 'install/deps*' install
- ls -l $HOME/package

deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY_ID
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: opendap.travis.build
  skip_cleanup: true
  local_dir: $TRAVIS_BUILD_DIR/package
  on:
    branch:
    - master<commit_msg>travis testing<commit_after>
# Initial Travic-CI control file. 6.5.15 jhrg
# Updated many times... finally using docker (containers). 7.14.15 jhrg

dist: trusty

sudo: false

language: cpp

compiler: gcc

branches:
  only:
  - master
  - coverity_scan
  - travis

addons:
  ssh_known_hosts: www.opendap.org
  coverity_scan:
    project:
      name: "OPENDAP/libdap4"
    notification_email: <EMAIL>
    build_command: "make -j7"
    branch_pattern: coverity_scan
  apt:
    packages:
    - libxml2-dev
    - uuid-dev
    - libcurl4-openssl-dev
    - libcppunit-dev
    
env:
  global:
  - prefix=$TRAVIS_BUILD_DIR/install
  - PATH=$prefix/bin:$PATH
  # COVERITY_SCAN_TOKEN, created via the "travis encrypt" command using the project repo's public key
  - secure: "<KEY>
  # AWS_ACCESS_KEY_ID for the user 'travis'
  - secure: "<KEY>
  # AWS_SECRET_ACCESS_KEY
  - secure: "<KEY>

before_install:
- sudo apt-get update -qq
- pip install --user awscli
- ./ecr_credentials.sh

# hyrax-dependencies-build.tar.gz includes/makes the build directory
install:
- aws s3 sync s3://opendap.travis.build/hyrax-dependencies-build.tar.gz $TRAVIS_BUILD_DIR
- tar -C $TRAVIS_BUILD_DIR -xzvf $TRAVIS_BUILD_DIR/hyrax-dependencies-build.tar.gz

before_script:
- printenv
- autoreconf --force --install --verbose
- ./configure --disable-dependency-tracking --prefix=$prefix --enable-developer --enable-asan

jobs:
  include:
  - stage: build
    script: if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make -j7 && make check -j7 && make install; fi
  - stage: build
    script: if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make distcheck -j7; fi

before_deploy:
- mkdir $TRAVIS_BUILD_DIR/package
- tar -C $TRAVIS_BUILD_DIR -czvf $TRAVIS_BUILD_DIR/package/libdap-build.tar.gz --exclude 'install/deps*' install
- ls -l $HOME/package

deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY_ID
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: opendap.travis.build
  skip_cleanup: true
  local_dir: $TRAVIS_BUILD_DIR/package
  on:
    branch:
    - master
{'fraction_non_alphanumeric': 0.11356310438879247, 'fraction_numerical': 0.010414083808579222, 'mean_word_length': 3.4476295479603087, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '43163', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1506, 'n_words': 346}