Skip to content

Commit

Permalink
Move xref into docker executor
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jul 14, 2021
1 parent 7f98550 commit 6748350
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,25 +244,6 @@ jobs:
key: build-cache-{{ .Branch }}-{{ .Revision }}--{{ checksum "otp_version" }}
paths: ./

xref:
parallelism: 1
machine:
image: ubuntu-2004:202010-01
working_directory: ~/app
parameters:
otp_package:
type: string
description: Version of the Erlang package to install
steps:
- checkout
- fetch_packages
- install_erlang:
otp_package: <<parameters.otp_package>>
- run:
name: Run Xref
command: |
SKIP_AUTO_COMPILE=true KEEP_COVER_RUNNING=1 ./tools/test.sh -p xref_only -s false
small_tests:
parallelism: 1
machine:
Expand Down Expand Up @@ -539,6 +520,19 @@ jobs:
command: |
SKIP_AUTO_COMPILE=true KEEP_COVER_RUNNING=1 ./tools/test.sh -p dialyzer_only -s false
xref:
executor: << parameters.executor >>
parameters:
executor:
type: executor
parallelism: 1
steps:
- restore_workspace
- run:
name: Run Xref
command: |
SKIP_AUTO_COMPILE=true KEEP_COVER_RUNNING=1 ./tools/test.sh -p xref_only -s false
package:
parallelism: 1
executor: << parameters.executor >>
Expand Down Expand Up @@ -608,6 +602,14 @@ workflows:
requires:
- otp_23_docker
filters: *all_tags
# ============= XREF =============
- xref:
name: xref
executor: otp_23
context: mongooseim-org
requires:
- otp_23_docker
filters: *all_tags
# ============= SMALL TESTS =============
- small_tests_in_docker:
name: small_tests_23
Expand Down Expand Up @@ -660,12 +662,6 @@ workflows:
requires:
- otp_22
filters: *all_tags
# ============= XREF =============
- xref:
name: xref
otp_package: 23.0.3-1
context: mongooseim-org
filters: *all_tags
# ============= MOST RECENT VERSION TESTS =============
- big_tests:
name: mysql_redis
Expand Down Expand Up @@ -766,6 +762,7 @@ workflows:
- mysql_redis
- mssql_mnesia
- dialyzer
- xref
- small_tests_22
- small_tests_21_3
- small_tests_23
Expand Down

0 comments on commit 6748350

Please sign in to comment.