An open API service indexing awesome lists of open source software.

https://github.com/lambdatest/lambdatest-buildkite-plugin


https://github.com/lambdatest/lambdatest-buildkite-plugin

buildkite-plugin hacktoberfest

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# LambdaTest Buildkite Plugin

A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) that opens a [LambdaTest tunnel](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/).

It contains a [pre-command hook](hooks/pre-command), [pre-exit hook](hooks/pre-exit), and [tests](tests/command.bats) using [plugin-tester](https://github.com/buildkite-plugins/plugin-tester).

## Configuration

### `tunnelName`

To use a particular tunnel, you can get `LT_TUNNEL_NAME` from the environment variables in your test scripts (`BUILDKITE_JOB_ID`).

```yml
steps:
- command: 'yarn && yarn LT test'
plugins:
- lambdatest/lambdatest#v1.0.0
```
## Tests
To run the tests, run `.ci/test.sh`

## Lint

* Plugin: `.ci/lint-plugin.sh`
* Shell files `.ci/lint-shell.sh`