Skip to content

Commit 0e25a2d

Browse files
author
Nikolay Kasyanov
committed
Updates Travis config, dependencies & test environment
1 parent 42382e9 commit 0e25a2d

File tree

4 files changed

+41
-23
lines changed

4 files changed

+41
-23
lines changed

.travis.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1+
os:
2+
- linux
3+
- osx
4+
dist: trusty
5+
16
language: ruby
2-
cache:
3-
directories:
4-
- bundle
7+
cache: bundler
58

69
rvm:
710
- 2.0
811
- 2.1.3
912
- 2.3.1
13+
- 2.4.0
14+
15+
branches:
16+
only:
17+
- master
18+
19+
addons:
20+
apt:
21+
packages: [
22+
clang-format-3.6
23+
]
24+
25+
before_install:
26+
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install [email protected]; fi
27+
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=`brew --prefix [email protected]`/bin:$PATH; fi
1028

1129
script:
12-
- bundle exec rake spec
30+
- bundle exec rake spec

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
addressable (2.5.0)
10+
addressable (2.5.1)
1111
public_suffix (~> 2.0, >= 2.0.2)
1212
ast (2.3.0)
1313
claide (1.0.1)
@@ -16,13 +16,13 @@ GEM
1616
nap
1717
open4 (~> 1.3)
1818
coderay (1.1.1)
19-
colored (1.2)
20-
cork (0.2.0)
21-
colored (~> 1.2)
22-
danger (4.0.3)
19+
colored2 (3.1.2)
20+
cork (0.3.0)
21+
colored2 (~> 3.1)
22+
danger (5.1.1)
2323
claide (~> 1.0)
2424
claide-plugins (>= 0.9.2)
25-
colored (~> 1.2)
25+
colored2 (~> 3.1)
2626
cork (~> 0.1)
2727
faraday (~> 0.9)
2828
faraday-http-cache (~> 1.0)
@@ -33,7 +33,7 @@ GEM
3333
danger-plugin-api (1.0.0)
3434
danger (> 2.0)
3535
diff-lcs (1.2.5)
36-
faraday (0.10.0)
36+
faraday (0.12.1)
3737
multipart-post (>= 1.2, < 3)
3838
faraday-http-cache (1.3.1)
3939
faraday (~> 0.8)
@@ -54,7 +54,7 @@ GEM
5454
guard (~> 2.1)
5555
guard-compat (~> 1.1)
5656
rspec (>= 2.99.0, < 4.0)
57-
kramdown (1.13.1)
57+
kramdown (1.13.2)
5858
listen (3.0.7)
5959
rb-fsevent (>= 0.9.3)
6060
rb-inotify (>= 0.9.7)
@@ -66,7 +66,7 @@ GEM
6666
notiffany (0.1.1)
6767
nenv (~> 0.1)
6868
shellany (~> 0.0)
69-
octokit (4.6.2)
69+
octokit (4.7.0)
7070
sawyer (~> 0.8.0, >= 0.5.3)
7171
open4 (1.3.4)
7272
parser (2.3.3.1)
@@ -76,7 +76,7 @@ GEM
7676
coderay (~> 1.1.0)
7777
method_source (~> 0.8.1)
7878
slop (~> 3.4)
79-
public_suffix (2.0.4)
79+
public_suffix (2.0.5)
8080
rainbow (2.1.0)
8181
rake (10.5.0)
8282
rb-fsevent (0.9.8)
@@ -110,7 +110,7 @@ GEM
110110
terminal-table (1.7.3)
111111
unicode-display_width (~> 1.1.1)
112112
thor (0.19.4)
113-
unicode-display_width (1.1.2)
113+
unicode-display_width (1.1.3)
114114
yard (0.9.5)
115115

116116
PLATFORMS
@@ -129,4 +129,4 @@ DEPENDENCIES
129129
yard (~> 0.8)
130130

131131
BUNDLED WITH
132-
1.13.6
132+
1.14.6

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# danger-code_style_validation
22

3+
[![Build Status](https://travis-ci.org/flix-tech/danger-code_style_validation.svg?branch=master)](https://travis-ci.org/flix-tech/danger-code_style_validation)
4+
35
This plugin looks for code style violations for added lines and suggests patches.
46

57
It uses 'clang-format' and only checks `.h`, `.m` and `.mm` files

spec/spec_helper.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ def cork.string
4444
# running a PR on TravisCI
4545
def testing_env
4646
{
47-
'DANGER_GITLAB_API_TOKEN' => '3PBA55xbCNQV6xdCCjwT',
48-
'JENKINS_URL' => 'http://mobile-jenkins.local/',
49-
'GIT_URL' => '[email protected]:iOS/danger-code_style_validation.git',
50-
'DANGER_GITLAB_HOST' => 'gitlab.mfb.io',
51-
'DANGER_GITLAB_API_BASE_URL' => 'https://gitlab.mfb.io/api/v3',
52-
'GIT_BRANCH' => 'ersen/danger-code-style-validation',
53-
'gitlabMergeRequestId' => '15546'
47+
'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
48+
'TRAVIS_PULL_REQUEST' => '800',
49+
'TRAVIS_REPO_SLUG' => 'artsy/eigen',
50+
'TRAVIS_COMMIT_RANGE' => '759adcbd0d8f...13c4dc8bb61d',
51+
'DANGER_GITHUB_API_TOKEN' => '123sbdq54erfsd3422gdfio'
5452
}
5553
end
5654

0 commit comments

Comments
 (0)