<commit_before>#
# Travis CI configuration file
#
# ICRAR - International Centre for Radio Astronomy Research
# (c) UWA - The University of Western Australia, 2016
# Copyright by UWA (in the framework of the ICRAR)
# All rights reserved
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307  USA
#

# To use docker later...
sudo: required

# let's go!
language: python
matrix:
  include:
    - python: "3.8"
      env: NO_DLG_RUNTIME=1
    - python: "3.8"
      env: NO_DLG_TRANSLATOR=1
    - python: "3.8"
      env: TEST_OPENAPI=1
    - python: "3.7"
    - python: "3.6"
    - python: "3.5"
    - python: "2.7"

# We want to use docker during the tests
services:
 - docker

# Try to speed up builds by caching our dependencies
cache: pip

before_install:
 - pip install -U coveralls pytest pytest-cov
 - pip install -U setuptools pip wheel

install:
 - pip install -e daliuge-common/
 - test -n "$NO_DLG_TRANSLATOR" || pip install -e daliuge-translator/
 - test -n "$NO_DLG_RUNTIME" || pip install -e daliuge-runtime/

before_script:
 - sudo apt-get update && sudo apt-get install -y doxygen && sudo apt-get install -y xsltproc
  branches:
    only:
    - doxygentest

# run the tests, making sure subprocesses generate coverage information
script:
 - COVFILES=
 - test -n "$NO_DLG_TRANSLATOR" || { (cd daliuge-translator && py.test --cov) && COVFILES+=" daliuge-translator/.coverage"; }
 - test -n "$NO_DLG_RUNTIME" || { (cd daliuge-runtime && py.test --cov) && COVFILES+=" daliuge-runtime/.coverage"; }
 - coverage combine $COVFILES
 - test -z "$TEST_OPENAPI" || (cd OpenAPI/tests && ./test_managers_openapi.sh)

after_script:
 - GIT_REPO=$(git remote -v) PROJECT_VERSION=$(git rev-parse --short HEAD) doxygen
 - cd DALIUGE/xml
 - xsltproc combine.xslt index.xml >daliuge.xml
 - mv daliuge.xml ../.
 - cd ..
 - rm -rf xml/
 - cd ..
 - git config --global user.name $GITHUB_USERNAME
 - git config --global user.email "$<EMAIL>"
 - git clone https://$GITHUB_TOKEN@github.com/ICRAR/EAGLE_test_repo
 - cd EAGLE_test_repo/
 - git checkout origin/doxygentest
 - rm -rf DALIUGE/
 - mv ../DALIUGE/ .<commit_msg>run on the specified branch<commit_after>#
# Travis CI configuration file
#
# ICRAR - International Centre for Radio Astronomy Research
# (c) UWA - The University of Western Australia, 2016
# Copyright by UWA (in the framework of the ICRAR)
# All rights reserved
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307  USA
#

# To use docker later...
sudo: required

# let's go!
language: python
matrix:
  include:
    - python: "3.8"
      env: NO_DLG_RUNTIME=1
    - python: "3.8"
      env: NO_DLG_TRANSLATOR=1
    - python: "3.8"
      env: TEST_OPENAPI=1
    - python: "3.7"
    - python: "3.6"
    - python: "3.5"
    - python: "2.7"

# We want to use docker during the tests
services:
 - docker

# Try to speed up builds by caching our dependencies
cache: pip

before_install:
 - pip install -U coveralls pytest pytest-cov
 - pip install -U setuptools pip wheel

install:
 - pip install -e daliuge-common/
 - test -n "$NO_DLG_TRANSLATOR" || pip install -e daliuge-translator/
 - test -n "$NO_DLG_RUNTIME" || pip install -e daliuge-runtime/

before_script:
 - sudo apt-get update && sudo apt-get install -y doxygen && sudo apt-get install -y xsltproc
  branches:
    only:
    - doxygentest@ICRAR/daliuge

# run the tests, making sure subprocesses generate coverage information
script:
 - COVFILES=
 - test -n "$NO_DLG_TRANSLATOR" || { (cd daliuge-translator && py.test --cov) && COVFILES+=" daliuge-translator/.coverage"; }
 - test -n "$NO_DLG_RUNTIME" || { (cd daliuge-runtime && py.test --cov) && COVFILES+=" daliuge-runtime/.coverage"; }
 - coverage combine $COVFILES
 - test -z "$TEST_OPENAPI" || (cd OpenAPI/tests && ./test_managers_openapi.sh)

after_script:
  branches:
    only:
      - master
 - GIT_REPO=$(git remote -v) PROJECT_VERSION=$(git rev-parse --short HEAD) doxygen
 - cd DALIUGE/xml
 - xsltproc combine.xslt index.xml >daliuge.xml
 - mv daliuge.xml ../.
 - cd ..
 - rm -rf xml/
 - cd ..
 - git config --global user.name $GITHUB_USERNAME
 - git config --global user.email "$<EMAIL>"
 - git clone https://$GITHUB_TOKEN@github.com/ICRAR/EAGLE_test_repo
 - cd EAGLE_test_repo/
 - git checkout origin/doxygentest
 - rm -rf DALIUGE/
 - mv ../DALIUGE/ .
{'fraction_non_alphanumeric': 0.10921076073401033, 'fraction_numerical': 0.013183680741136647, 'mean_word_length': 3.295332823259373, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 2, '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': '42655', 'n_tokens_mistral': 1913, 'n_tokens_neox': 1845, 'n_words': 673}