Skip to content

Commit

Permalink
Add JS summary helpers, fix and improve CI tests (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- authored Jan 20, 2021
1 parent de4c2c1 commit 07faf73
Show file tree
Hide file tree
Showing 11 changed files with 1,362 additions and 21 deletions.
27 changes: 20 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- run:
name: "Install k6"
command: |
curl -O -L https://github.com/loadimpact/k6/releases/download/v0.28.0/k6-v0.28.0-linux64.tar.gz;
tar -xvzf k6-v0.28.0-linux64.tar.gz;
mv k6-v0.28.0-linux64/k6 ~/jslib.k6.io/k6
curl -O -L https://github.com/loadimpact/k6/releases/download/v0.29.0/k6-v0.29.0-linux64.tar.gz;
tar -xvzf k6-v0.29.0-linux64.tar.gz;
mv k6-v0.29.0-linux64/k6 ~/jslib.k6.io/k6
- save_cache:
key: v1-dependency-cache-{{ checksum "supported.json" }}
paths:
Expand All @@ -32,14 +32,23 @@ jobs:
paths:
- .

test:
test-extended:
<<: *defaults
steps:
- attach_workspace:
at: ~/jslib.k6.io
- run:
name: Run tests
command: ~/jslib.k6.io/k6 run tests/testSuite.js -u 1 -i 1
command: ~/jslib.k6.io/k6 run tests/testSuite.js

test-base:
<<: *defaults
steps:
- attach_workspace:
at: ~/jslib.k6.io
- run:
name: Run tests with compatibility-mode=base
command: ~/jslib.k6.io/k6 run --compatibility-mode=base tests/testSuiteBase.js

deploy:
<<: *defaults
Expand All @@ -58,12 +67,16 @@ workflows:
build-deploy:
jobs:
- build
- test:
- test-extended:
requires:
- build
- test-base:
requires:
- build
- deploy:
requires:
- test
- test-extended
- test-base
filters:
branches:
only: master
3 changes: 3 additions & 0 deletions lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,9 @@ <h2>Available libs</h2>
<tr>
<td>k6-utils</td>
<td><a target="_blank" href="https://jslib.k6.io/k6-utils/1.0.0/index.js">1.0.0</a></td>
</tr><tr>
<td>k6-summary</td>
<td><a target="_blank" href="https://jslib.k6.io/k6-summary/0.0.1/index.js">0.0.1</a></td>
</tr><tr>
<td>jsonpath</td>
<td><a target="_blank" href="https://jslib.k6.io/jsonpath/1.0.2/index.js">1.0.2</a></td>
Expand Down
Loading

0 comments on commit 07faf73

Please sign in to comment.