Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-support.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/tests.yml27
-rw-r--r--.gitignore4
-rw-r--r--.travis.yml7
-rw-r--r--README.md22
-rw-r--r--package.json27
-rwxr-xr-xscript/install-bats.sh6
6 files changed, 64 insertions, 29 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..18915d0
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,27 @@
+# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Tests
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ - uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+ - run: npm install
+ - run: npm test
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..05f900c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/node_modules
+/package-lock.json
+/yarn.lock
+/bats-support-*.tgz
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 75721f2..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: bash
-before_install:
- - ./script/install-bats.sh
-before_script:
- - export PATH="${HOME}/.local/bin:${PATH}"
-script:
- - bats test
diff --git a/README.md b/README.md
index 71c02ba..0554349 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,9 @@
-*__Important:__ `bats-core` has been renamed to `bats-support`. GitHub
-automatically redirects all references, e.g. submodules and clones will
-continue to work, but you are encouraged to [update][github-rename]
-them. Version numbering continues where `bats-core` left off.*
-
-[github-rename]: https://help.github.com/articles/renaming-a-repository/
-
-- - - - -
-
# bats-support
-[![GitHub license](https://img.shields.io/badge/license-CC0-blue.svg)](https://raw.githubusercontent.com/ztombol/bats-support/master/LICENSE)
-[![GitHub release](https://img.shields.io/github/release/ztombol/bats-support.svg)](https://github.com/ztombol/bats-support/releases/latest)
-[![Build Status](https://travis-ci.org/ztombol/bats-support.svg?branch=master)](https://travis-ci.org/ztombol/bats-support)
+[![GitHub license](https://img.shields.io/badge/license-CC0-blue.svg)](https://raw.githubusercontent.com/bats-core/bats-support/master/LICENSE)
+[![GitHub release](https://img.shields.io/github/release/bats-core/bats-support.svg)](https://github.com/bats-core/bats-support/releases/latest)
+[![Build Status](https://github.com/bats-core/bats-support/workflows/Tests/badge.svg)](https://github.com/bats-core/bats-support/actions?query=workflow%3ATests)
+
`bats-support` is a supporting library providing common functions to
test helper libraries written for [Bats][bats].
@@ -184,6 +176,6 @@ log_test() {
<!-- REFERENCES -->
-[bats]: https://github.com/sstephenson/bats
-[bats-docs]: https://github.com/ztombol/bats-docs
-[bats-assert]: https://github.com/ztombol/bats-assert
+[bats]: https://github.com/bats-core/bats-core
+[bats-docs]: https://github.com/bats-core/bats-docs
+[bats-assert]: https://github.com/bats-core/bats-assert
diff --git a/package.json b/package.json
index 192d16a..5015687 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,30 @@
{
"name": "bats-support",
"version": "0.3.0",
- "private": true
+ "description": "Supporting library for Bats test helpers",
+ "homepage": "https://github.com/jasonkarns/bats-support",
+ "license": "CC0-1.0",
+ "author": "Zoltán Tömböl (https://github.com/ztombol)",
+ "contributors": [
+ "Jason Karns <jason.karns@gmail.com> (http://jason.karns.name)"
+ ],
+ "repository": "github:jasonkarns/bats-support",
+ "bugs": "https://github.com/jasonkarns/bats-support/issues",
+ "directories": {
+ "lib": "src",
+ "test": "test"
+ },
+ "files": [
+ "load.bash",
+ "src"
+ ],
+ "scripts": {
+ "test": "bats ${CI+-t} test"
+ },
+ "devDependencies": {
+ "bats": "^1"
+ },
+ "peerDependencies": {
+ "bats": "0.4 || ^1"
+ }
}
diff --git a/script/install-bats.sh b/script/install-bats.sh
deleted file mode 100755
index 4c3161a..0000000
--- a/script/install-bats.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-set -o errexit
-set -o xtrace
-
-git clone --depth 1 https://github.com/sstephenson/bats
-cd bats && ./install.sh "${HOME}/.local" && cd .. && rm -rf bats