File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
** /* .rs.bk
3
3
Cargo.lock
4
- README.md.expected
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ before_install:
14
14
branches :
15
15
only :
16
16
- master
17
- - fix/28-cargo-readme
18
17
19
18
cache :
20
19
directories :
@@ -72,8 +71,7 @@ matrix:
72
71
before_script :
73
72
- bash update_cargo-readme.sh
74
73
script :
75
- - cargo readme > README.md.expected
76
- - diff README.md README.md.expected
74
+ - bash auxiliary/check_readme_consistency.sh
77
75
78
76
script : |
79
77
export RUST_BACKTRACE=1 &&
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/bash
2
+
3
+ cargo readme --template auxiliary/README.tpl > README.md.expected
4
+
5
+ diff README.md README.md.expected
6
+
7
+ if [ $? -eq 0 ]
8
+ then
9
+ echo ' README.md is up to date!'
10
+ exit 0
11
+ else
12
+ echo ' README.md out of date. Run "cargo readme > README.md" and commit again.'
13
+ exit 1
14
+ fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/bash
2
+
2
3
our_version=$( cargo readme -V | perl -ne ' print $1 while /v([\d.]+)/g' )
3
4
last_version=$( cargo search cargo-readme | perl -ne ' print $1 while /^cargo-readme = "([\d.]+)"/g' )
4
5
You can’t perform that action at this time.
0 commit comments