Private GIT

Skip to content
Snippets Groups Projects
Select Git revision
  • 9d509751415672b8123c0c4ed177ec28ce343681
  • master default protected
  • fix_nzb_cat
  • develop
  • guessit2-minimal
  • ssl_warning
  • UHD-qualities
  • fix_providers8
  • !
  • tvvault
  • provider_alpharatio
  • v5.1.1
  • v5.1
  • v5.0.3
  • v5.0.2
  • v5.0.1
  • v5.0
  • v4.2.1.07
  • v4.2.1.06
  • v4.2.1.05
  • v4.2.1.04
  • v4.2.1.03
  • v4.2.1.02
  • v4.2.1.01
  • v4.2.1.0
  • v4.2.0.6
  • v4.2.0.5
  • v4.2.0.4
  • v4.2.0.3
  • v4.2.0.2
  • v4.2.0.1
31 results

.travis.yml

Blame
  • .travis.yml 1.38 KiB
    language: python
    
    python:
      - 2.7.9
    
    dist: xenial
    sudo: false
    
    env:
      - TRAVIS_NODE_VERSION="8.0.0"
    
    before_install:
      - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm &&
        git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
      - npm install -g grunt-cli bower xo
      - npm install --quiet
      - bower install
    
    install:
      - pip install --upgrade pip
      - pip install --upgrade tox
      - pip install --upgrade babel mako crowdin-cli-py
    
    script:
      - xo && tox -v --recreate -e "py27-{flake8,linux}"
    
    cache:
      directories:
        - $HOME/.cache/pip
        - bower_components
        - node_modules
    
    after_failure:
      - cat ./tests/Logs/sickrage.log
    
    after_success:
      # don't run if any of these are NOT met
      - if ! { [[ ! -z "$CROWDIN_API_KEY" ]] && [[ "$GH_CRED" =~ ^.+:.+$ ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
        && [[ "$TRAVIS_BRANCH" == "master" ]]; }; then exit 0; fi;
      - git --version
      - git config --global user.name "SickRage"
      - git config --global user.email sickrage2@gmail.com
      - git config --global push.default current
      - git remote rm origin
      - git remote add origin https://$GH_CRED@github.com/$TRAVIS_REPO_SLUG.git
      - git fetch origin master develop --no-tags
      - grunt auto_update_trans
    
    notifications:
      irc: "irc.freenode.net#sickrage-builds"
      email:
        on_success: change
        on_failure: change