Skip to content

Commit bd5bd23

Browse files
committed
travis: test on both osx and linux
remove apt-install install gnu-sed on mac clear testing section No Need to install coreutils, we already mention gnu-sed.
1 parent b8cb727 commit bd5bd23

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
language: bash
22
before_install:
33
- 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
66
script:
77
- ./bats/bin/bats test/*.bats
8+
os:
9+
- linux
10+
- osx

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ Pull requests quite welcome.
8686

8787
## Hacking and Testing
8888

89+
Install [bats](github.com/sstephenson/bats#installing-bats-from-source), the Bash automated testing system we are using.
90+
8991
```sh
9092
# fork and clone the repo. then…
91-
9293
git submodule update --init
93-
brew install entr coreutils
94-
# install bats: github.com/sstephenson/bats#installing-bats-from-source
9594
```
9695

9796
```sh
9897
# Run the test suite once:
9998
bats test/diff-so-fancy.bats
10099

101100
# Run it on every change with `entr`
101+
brew install entr
102102
ls --color=never diff-so-fancy test/*.bats | entr bats test/*.bats
103103
```
104104

0 commit comments

Comments
 (0)