File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,24 @@ before_install:
12
12
- mkdir -p ~/.local/bin
13
13
- export PATH=$HOME/.local/bin:$PATH
14
14
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
15
+ - rvm use 2.1 --install --binary --fuzzy
15
16
install :
16
- - travis_wait 30 stack --no-terminal --install-ghc --copy-bins build
17
- - stack --no-terminal install hlint
17
+ - travis_wait 30 stack --no-terminal --install-ghc --copy-bins build
18
+ - stack --no-terminal install hlint
19
+ - cp hlint ~/.local/bin
20
+ - gem install danger danger-hlint
18
21
script :
19
22
- stack --no-terminal test --only-dependencies
20
23
- " ./hlint '--ignore=Parse error' src"
21
24
- " ./hlint '--ignore=Parse error' app"
25
+ - danger
22
26
deploy :
23
27
provider : releases
24
28
api_key :
25
29
secure : zM6T6ZwD1Tv0Igk9LORh3YZJvLlZHtjEbb6vkAQTicQ82Y/Ls88+67C0S4IkJbCkWqLUkfLkCv2x8aaZ7O6cbGi2xDtSPf+NyWfagvA+E2I6T2USJ93iYNs10Ep/SoAx7NEn6hnEKkNJd/kdFYtx/CvgXeN+PYHRfBD+NF106zoV4b9cF/mgSev/fxXqwT3GhaBJ/EEQ9LtEvgek3vjVWiSchCuubDdklgfAcgSBzGoQQLxyCq/BRF28ekFefKRQKiUNS4WI2btv+VnrP8xOvIPXnMSkFeF++druwPI75LRWYrhZA1ayj/5/NMHnn+TE4BMm5a2bdoLocvRHOwFIeK29oS5CdDttfiwpGHIykZGCoMIehfTJIecXyxezs1K8p0E6PV3eoCGyodXCoRDUXMWVUSaGbWnaIR8XcIOi3Rl6aYYfXWJc0MKiaQYSNQ7X2f4CqDDANqu587FPBQyHwlaEpXbb/bxFR6tvGSwnWgeU+bHseSKMesDz+wzhFHbyA77ls48dlKS2jpm/6qGx2Av1agz/cT7AJjrfuOhj8ZhpSIMtl3p1CfUCw1hh6lm42LrwOTRSBLMW7ErYDD5w4xw1YLQKMZVERGDrwYDVcbjgymZO0kE4kE1eh7KJJFZhsMkVCc/C3hi0TCtgjfiZ6uLKs5NYUUmiD9rCbp5UNeY=
26
30
file :
27
- - count
28
- - plagiarism
31
+ - count
32
+ - plagiarism
29
33
skip_cleanup : true
30
34
on :
31
35
tags : true
Original file line number Diff line number Diff line change
1
+ affected_files = git . added_files + git . modified_files
2
+
3
+ haskell_files = affected_files . select { |file | file . end_with? ( '.hs' ) }
4
+
5
+ hlint . lint ( haskell_files , true )
Original file line number Diff line number Diff line change @@ -54,21 +54,21 @@ library
54
54
, blaze-markup
55
55
, clay
56
56
, jmacro
57
- ghc-options : -Wall -Werror - fwarn-incomplete-patterns
57
+ ghc-options : -Wall -fwarn-incomplete-patterns
58
58
default-language : Haskell2010
59
59
60
60
executable plagiarism
61
61
hs-source-dirs : app/plagiarism
62
62
main-is : Main.hs
63
- ghc-options : -threaded -rtsopts -with-rtsopts=-N -O2 -Wall -Werror
63
+ ghc-options : -threaded -rtsopts -with-rtsopts=-N -O2 -Wall
64
64
build-depends : base
65
65
, lichen
66
66
default-language : Haskell2010
67
67
68
68
executable count
69
69
hs-source-dirs : app/count
70
70
main-is : Main.hs
71
- ghc-options : -threaded -rtsopts -with-rtsopts=-N -O2 -Wall -Werror
71
+ ghc-options : -threaded -rtsopts -with-rtsopts=-N -O2 -Wall
72
72
build-depends : base
73
73
, lichen
74
74
default-language : Haskell2010
You can’t perform that action at this time.
0 commit comments