github.com/siglens/siglens@v0.0.0-20240328180423-f7ce9ae441ed/.circleci/config.yml (about) 1 version: 2.1 2 orbs: 3 browser-tools: circleci/browser-tools@1.4.4 4 5 jobs: 6 e2e-server: 7 working_directory: ~/repo 8 # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. 9 # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor 10 docker: 11 - image: cimg/go:1.18 12 # Add steps to the job 13 # See: https://circleci.com/docs/2.0/configuration-reference/#steps 14 steps: 15 - checkout 16 - setup_remote_docker: 17 version: docker23 18 - run: 19 name: Build Siglens 20 command: make build 21 - run: 22 name: Run Siglens 23 command: ./siglens --config server.yaml 24 background: true 25 - run: 26 name: Clone sigscalr-client repo 27 command: git clone git@github.com:sigscalr/sigscalr-client.git 28 - run: 29 name: Tail logs file 30 command: | 31 sleep 10 32 ls -l 33 tail -f logs/siglens.log 34 background: true 35 - run: 36 name: Run E2E Test test 37 command: | 38 cd sigscalr-client 39 go run main.go ingest esbulk -n 10 -g benchmark -d http://localhost:8081/elastic -t 100_000 40 go run main.go ingest metrics -d http://localhost:8081/otsdb -t 1_000 -m 5 -p 10 -b 10_000 41 sleep 40 42 go run main.go query esbulk -d http://localhost:5122 -f ../cicd/ingest.csv 43 go run main.go query otsdb -d http://localhost:5122/otsdb -n 5 -y 44 - run: 45 name: Kill Siglens 46 command: | 47 pkill siglens 48 sleep 2 49 - run: 50 name: Restart Siglens 51 command: make run 52 background: true 53 54 - run: 55 name: Run Restart CI/CD tests 56 command: | 57 cd sigscalr-client 58 sleep 5 59 go run main.go query esbulk -d http://localhost:5122 -f ../cicd/restart.csv 60 go run main.go query otsdb -d http://localhost:5122/otsdb -n 5 -y 61 62 # Invoke jobs via workflows 63 # See: https://circleci.com/docs/2.0/configuration-reference/#workflows 64 workflows: 65 test_and_lint: 66 jobs: 67 - e2e-server