Skip to content

Commit

Permalink
.travis.yml: Remove GitHub merge commit workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kriti21 committed Jul 10, 2018
1 parent 44d4572 commit 7440feb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ files = **.yml, **.html, **.md, **.js
bears = LineCountBear
ignore = vendor/**, resources/vendors/**, data/projects.js, _site/**
max_lines_per_file = 500
min_lines_per_file = 0

[filenames]
bears = FilenameBear
Expand All @@ -42,6 +43,7 @@ bears = HTMLLintBear
files = **.html
htmllint_ignore = optional_tag, protocol, indentation, concerns_separation, capitalization
ignore = vendor/**, resources/vendors/**, _site/**
use_spaces = True

[yml]
bears = YAMLLintBear
Expand Down
33 changes: 23 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
services: docker
dist: "trusty"
sudo: required

matrix:
include:
- language: python
python: 3.5

language: ruby
addons:
apt:
packages:
- "python3-pip"

rvm:
- 2.3.3
cache: bundler

before_script:
- sudo -H pip3 install --upgrade pip
- sudo -H pip3 install --upgrade setuptools

# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script:
- .ci/build.sh
# https://github.com/coala/coala-bears/issues/1037
- >
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
sed -i.bak '/bears = GitCommitBear/d' .coafile
fi
- docker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
- curl -fsSL -o coala.zip $coala_ZIP_URL/master
- pip3 install coala.zip[alldeps] --pre -U
- curl -fsSL -o coala-bears.zip $BEARS_ZIP_URL/master
- pip3 install coala-bears.zip[alldeps] --pre -U
- coala --non-interactive

notifications:
email: false
Expand All @@ -24,6 +38,5 @@ notifications:
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # Speeds installation of html-proofer

# Route your build to the container-based infrastructure for a faster build
sudo: false
- coala_ZIP_URL=https://codeload.github.com/coala/coala/zip
- BEARS_ZIP_URL=https://codeload.github.com/coala/coala-bears/zip

0 comments on commit 7440feb

Please sign in to comment.