AtomLinter/linter-codeclimate

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
### Project specific config ###
language: node_js
node_js: lts/*
os: linux

env:
  global:
    - APM_TEST_PACKAGES="linter"

jobs:
  include:
    # Test PHP versions
    - stage: test
      env: ATOM_CHANNEL=stable
    - stage: test
      env: ATOM_CHANNEL=beta

    # Check the commit messages and run the extra lint script
    - stage: test
      install:
        - npm install
      before_script: skip
      script:
        - commitlint-travis

    - stage: release
      # Since the deploy needs APM, currently the simplest method is to run
      # build-package.sh, which requires the specs to pass.
      before_script:
        - export PATH=${PATH}:${HOME}/atom/usr/bin/
      deploy:
        provider: script
        skip_cleanup: true
        script:
          - npx semantic-release

sudo: required

services:
  - docker

install:
  - git clone --depth 1 https://github.com/codeclimate/codeclimate.git
  - cd codeclimate && sudo make install && cd ..

before_script:
  - docker info
  - codeclimate version

### Generic setup follows ###
script:
  - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
  - chmod u+x build-package.sh
  - "./build-package.sh"

notifications:
  email:
    on_success: never
    on_failure: change

branches:
  only:
    - master
    - "/^greenkeeper/.*$/"

git:
  depth: 10

addons:
  apt:
    packages:
    - build-essential
    - git
    - libgnome-keyring-dev
    - fakeroot

stages:
  - test
  - name: release
    if: (NOT type = pull_request) AND branch = master