Skip to content

Commit c7d0eca

Browse files
committed
update CI for bats
1 parent 4508612 commit c7d0eca

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.circleci/config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ jobs:
55
steps:
66
- checkout
77
- run:
8-
name:
8+
name:
99
command: |
1010
sudo apt-get -y update
1111
sudo apt-get -y install shellcheck git
12-
13-
- run: git clone --depth 1 https://github.com/sstephenson/bats.git
12+
13+
- run: git submodule sync
1414
- run: git submodule update --init
1515
- run:
1616
name: tests
1717
command: |
18-
export TERM=dumb && bats/bin/bats test/*.bats
18+
export TERM=dumb && ./test/bats/bin/bats test
1919
shellcheck *.sh
20-

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ addons:
2929
update: true
3030

3131
before_install:
32-
- git clone --depth 1 https://github.com/sstephenson/bats.git
32+
- git submodule sync
33+
- git submodule update --init
3334
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
3435
mkdir -p ~/perl5;
3536
fi
@@ -44,4 +45,4 @@ install:
4445
- cpanm --quiet --notest Test::Perl::Critic Perl::Critic::Freenode
4546
script:
4647
- perlcritic -1 -q --theme freenode diff-so-fancy
47-
- ./bats/bin/bats test/*.bats
48+
- ./test/bats/bin/bats test

appveyor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
install:
2-
- git clone --depth 1 https://github.com/sstephenson/bats.git
3-
41
build: false
52

63
before_test:
4+
- git submodule sync
75
- git submodule update --init
86

97
test_script:
10-
- C:\cygwin\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; bats/libexec/bats test/*.bats"
8+
- C:\cygwin\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./test/bats/bin/bats test"

0 commit comments

Comments
 (0)