aboutsummaryrefslogblamecommitdiffstats
path: root/.travis.yml
blob: 86f5168bef77b5be554909a1d55953f226fa118f (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                



         
         


                 
                       
              

                        



                                   
            
        
                                     
                             
       
                     
                           
                                                                

                                                                                                     
                                                                                                                                       


                                                                                                                                                                   


                                                                                                                  

          
language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
  - "nightly"
matrix:
  allow_failures:
    - python: "nightly"
notifications:
  email:
    sos-devel@redhat.com
  irc:
    channels:
      - "us.freenode.net#sosreport"
    on_success: change
dist: xenial
install:
  - "pip install -r requirements.txt"
  - "python setup.py install"
script:
  - "pycodestyle sos"
  - "pycodestyle --version"
  - "nosetests -v --with-cover --cover-package=sos --cover-html"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --help"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -l --config-file=sos.conf"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --config-file=sos.conf 2> errors | tee batch_output"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --all-logs --config-file=sos.conf 2> errors | tee batch_output"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --since=20191007 --config-file=sos.conf 2> errors | tee batch_output"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --all-logs --since=20191007 --config-file=sos.conf 2> errors | tee batch_output"
  - "[[ ! -s errors ]]"
  - "cat errors"
  - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --build --config-file=sos.conf"
git:
  depth: 5