Skip to content

Commit

Permalink
Merge pull request #18 from Cellane/travis-integration
Browse files Browse the repository at this point in the history
Adds Travis integration
  • Loading branch information
twof authored Feb 21, 2018
2 parents 8536b7c + 416b53e commit 59bf557
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 0 deletions.
108 changes: 108 additions & 0 deletions .spelling
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Spellchecker is kind of silly
# Need to tell it to ignore numbers like this
# Do I feel ashamed? Yes
# Will it stop working in 1.88 years? Yes
# But does it work now? Hell yes

VaporNation
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: ruby
cache:
bundler: true
pip: true
directories:
- "node_modules"
rvm: 2.4.1
node: 8
python: 3.4
before_script:
- sudo apt-get -qq update
- sudo apt-get install -y aspell aspell-en
- pip install --user proselint
- npm install -g orta/node-markdown-spellcheck
- bundle install
script:
- bundle exec danger
notifications:
email: false
25 changes: 25 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
if github.branch_for_base == "master"
if !git.modified_files.include?("README.md")
warn "Please add a new entry to the `README.md` file before merging to master."
end

if !git.modified_files.include?("index.md")
warn "Please add a new entry to the `index.md` file before merging to master."
end
end

markdown_files = (git.modified_files + git.added_files).select do |line|
line.end_with?(".md")
end

ignored_words = []

File.open('.spelling').each_line do |line|
line.chomp!
next if line.empty? || line.start_with?('#')
ignored_words.push(line)
end

prose.ignored_words = ignored_words
prose.lint_files markdown_files
prose.check_spelling markdown_files
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'danger'
gem 'danger-prose'
56 changes: 56 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
claide (1.0.2)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
colored2 (3.1.2)
cork (0.3.0)
colored2 (~> 3.1)
danger (5.5.10)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
cork (~> 0.1)
faraday (~> 0.9)
faraday-http-cache (~> 1.0)
git (~> 1)
kramdown (~> 1.5)
no_proxy_fix
octokit (~> 4.7)
terminal-table (~> 1)
danger-prose (2.0.5)
danger
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
git (1.3.0)
kramdown (1.16.2)
multipart-post (2.0.0)
nap (1.1.0)
no_proxy_fix (0.1.2)
octokit (4.8.0)
sawyer (~> 0.8.0, >= 0.5.3)
open4 (1.3.4)
public_suffix (3.0.2)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.3.0)

PLATFORMS
ruby

DEPENDENCIES
danger
danger-prose

BUNDLED WITH
1.16.1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# VaporNation

Weekly Vapor news, mostly detailing beta development

* [Week 0](https://twof.github.io/VaporNation/week0-18-01-21)
Expand Down
2 changes: 2 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
* [Week 0](https://twof.github.io/VaporNation/week0-18-01-21)
* [Week 1](https://twof.github.io/VaporNation/week1-18-01-29)
* [Week 2](https://twof.github.io/VaporNation/week2-18-02-05)
* [Week 3](https://twof.github.io/VaporNation/week3-18-02-12)

0 comments on commit 59bf557

Please # to comment.