File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
language : bash
2
2
before_install :
3
3
- git clone --depth 1 https://github.com/sstephenson/bats.git
4
- - sudo apt-get update -qq
5
- - sudo apt-get install -y coreutils
4
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
5
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gnu-sed; fi
6
6
script :
7
7
- ./bats/bin/bats test/*.bats
8
+ os :
9
+ - linux
10
+ - osx
Original file line number Diff line number Diff line change @@ -86,19 +86,19 @@ Pull requests quite welcome.
86
86
87
87
## Hacking and Testing
88
88
89
+ Install [ bats] ( github.com/sstephenson/bats#installing-bats-from-source ) , the Bash automated testing system we are using.
90
+
89
91
``` sh
90
92
# fork and clone the repo. then…
91
-
92
93
git submodule update --init
93
- brew install entr coreutils
94
- # install bats: github.com/sstephenson/bats#installing-bats-from-source
95
94
```
96
95
97
96
``` sh
98
97
# Run the test suite once:
99
98
bats test/diff-so-fancy.bats
100
99
101
100
# Run it on every change with `entr`
101
+ brew install entr
102
102
ls --color=never diff-so-fancy test/* .bats | entr bats test/* .bats
103
103
```
104
104
You can’t perform that action at this time.
0 commit comments