Skip to content

Commit

Permalink
Add Edoc to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gustawlippa committed Oct 13, 2021
1 parent fdcaf98 commit 007f85a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,18 @@ jobs:
name: Run Xref
command: |
SKIP_AUTO_COMPILE=true KEEP_COVER_RUNNING=1 ./tools/test.sh -p xref_only -s false
edoc:
executor: << parameters.executor >>
parameters:
executor:
type: executor
parallelism: 1
steps:
- restore_workspace
- run:
name: Run Edoc
command: |
SKIP_AUTO_COMPILE=true KEEP_COVER_RUNNING=1 ./tools/test.sh -p edoc_only -s false
package:
parallelism: 1
Expand Down Expand Up @@ -611,6 +623,14 @@ workflows:
requires:
- otp_24_docker
filters: *all_tags
# ============= EDOC =============
- edoc:
name: edoc
executor: otp_24
context: mongooseim-org
requires:
- otp_24_docker
filters: *all_tags
# ============= SMALL TESTS =============
- small_tests_in_docker:
name: small_tests_24
Expand Down Expand Up @@ -788,4 +808,5 @@ workflows:

- dialyzer
- xref
- edoc
filters: *all_tags
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ jobs:
otp-version: ${{matrix.otp}}
- run: tools/test.sh -p xref_only

edoc:
name: edoc on OTP ${{matrix.otp}}
strategy:
matrix:
otp: [ '24.0.2' ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ErlGang/[email protected]
with:
otp-version: ${{matrix.otp}}
- run: tools/test.sh -p edoc_only

pkg:
name: ${{matrix.pkg}} package
strategy:
Expand Down
7 changes: 7 additions & 0 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ elif [ "$PRESET" == "xref_only" ]; then
RESULT=$?
tools/print-dots.sh stop
exit ${RESULT}
elif [ "$PRESET" == "edoc_only" ]; then
tools/print-dots.sh start
tools/print-dots.sh monitor $$
./rebar3 edoc
RESULT=$?
tools/print-dots.sh stop
exit ${RESULT}
elif [ "$PRESET" == "pkg" ]; then
build_pkg $pkg_PLATFORM $ESL_ERLANG_PKG_VER
elif [ "$PRESET" == "small_tests" ]; then
Expand Down

0 comments on commit 007f85a

Please sign in to comment.