Skip to content

Commit

Permalink
docs: document how the CI runs the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Feb 19, 2020
1 parent d73b62c commit 66e1656
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions x-pack/legacy/plugins/apm/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ yarn cypress open
yarn cypress run
```

## Reproducing CI builds

>This process is very slow compared to the local development described above. Consider that the CI must install and configure the build tools and create a Docker image for the project to run tests in a consistent manner.
The Jenkins CI uses a shell script to prepare Kibana:

```shell
# Prepare and run Kibana locally
$ x-pack/legacy/plugins/apm/e2e/ci/prepare-kibana.sh
# Build Docker image for Kibana
$ docker build --tag cypress x-pack/legacy/plugins/apm/e2e/ci
# Run Docker image
$ docker run --rm -t --user "$(id -u):$(id -g)" \
-v `pwd`:/app --network="host" \
--name cypress cypress
```

## Connect to Elasticsearch on Cloud (internal devs only)

Find the credentials for the cluster [here](https://github.com/elastic/apm-dev/blob/master/docs/credentials/apm-ui-clusters.md#e2e-cluster). The cloud instance contains the static data set
Expand Down

0 comments on commit 66e1656

Please sign in to comment.