Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebar3 #4120

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Rebar3 #4120

wants to merge 13 commits into from

Commits on Jul 21, 2022

  1. Use umbrella project structure

    Change `src` to `apps`
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    41c414c View commit details
    Browse the repository at this point in the history
  2. Update paths and symlinks

    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    789a4a1 View commit details
    Browse the repository at this point in the history
  3. Update dependencies and test files to pass eunit tests

    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    9fcad61 View commit details
    Browse the repository at this point in the history
  4. rebar3: configure

    1. Removed `setup_eunit` plugin
    2. Modified rebar.config.script to use correct path
    3. `fauxton` is a Non-Erlang deps that rebar3 cannot fetch, so use
    `configure` to download
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    6514754 View commit details
    Browse the repository at this point in the history
  5. Rebar3: Makefile make

    1. Use `couch/rebar.config.script` to get dependencies to avoid
    dependency cycle errors.
    2. Modify Makefile to pass `make all`
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    de9f1cc View commit details
    Browse the repository at this point in the history
  6. rebar3: Makefile make dist

    1. Modify `couchdb-build-releases.sh` to copy rebar3
    2. Modify the path to docs
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    18d34d2 View commit details
    Browse the repository at this point in the history
  7. fixup fauxton

    1. rebar3 doesn't support `[raw]`
    2. Mimic fauxton as an OTP application
    See apache/couchdb-fauxton@2aa7845
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    c5e4056 View commit details
    Browse the repository at this point in the history
  8. rebar3: rebar3 ic setup_eunit plugin

    Create a rebar3 ic setup_eunit plugin to keep the same functionality
    as the previous one. Since we need to use `setup_eunit.template`, so
    move it to `plugins/ic/priv` folder.
    
    Commands:
    `rebar3 help ic`, `rebar3 help ic setup_eunit`,
    `rebar3 ic`, `rebar3 ic setup_eunit [-f]`, `rebar3 ic setup_eunit -f`,
    and `make setup-eunit`
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    098e2ad View commit details
    Browse the repository at this point in the history
  9. rebar3: Makefile make exunit

    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    40d9ebe View commit details
    Browse the repository at this point in the history
  10. rebar3: Makefile make eunit

    1. Removed `-r` and `skip_apps` since rebar3 does not have them.
    2. Copy `config`, `b64url`, `jiffy`, etc. to `apps` folder to avoid
    `application not exist in the project` error.
    3. Modified paths since rebar and rebar3 used different paths.
    
    Commands: `make eunit`, `make eunit apps=config`
    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    bebcbe9 View commit details
    Browse the repository at this point in the history
  11. rebar3: Makefile make mango-test and ./dev/run

    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    b004656 View commit details
    Browse the repository at this point in the history
  12. rebar3: Makefile make dialyze and make introspect

    jiahuili authored and jiahuili committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    84e4b45 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. rebar3: Makefile make release

    `./dev/run` is using `reltoo.config`
    `rebar3 release` is using `relx`
    
    For `make release`, changed `couchdb` with `start` because it's hardcoded
    in relx. see https://github.com/erlware/relx/blob/main/src/rlx_assemble.erl#L828
    jiahuili authored and jiahuili committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    2b25e38 View commit details
    Browse the repository at this point in the history