For Docker environment configuration read ENVIRONMENT.md
Kimlic-elixir repository integrated with Travis CI. For automatic semantic versioning CI requires proper commit message for each commit in pull requests.
Use next prefix in commit message:
[patch]
- increment PATCH version (0.1.0 -> 0.1.1)[minor]
- increment MINOR version (0.1.0 -> 0.2.0)[major]
- increment MAJOR version (0.1.0 -> 1.0.0)
In case of invalid commit message Travis CI fails
Every successful build in Travis CI for develop
branch will create Docker container for mobile_api and attestation_api applications.
Documentation for containers deployment located in Helm charts
Local configuration:
- Clone smart contracts repo
cd quorum.smart-contracts
- run truffle migration
truffle migrate --compile --reset --network KIM1
- found address for deployed KimlicContextStorage contract
- set KimlicContextStorage address to quorum config:
:quorum, context_storage_address: "%ADDRESS%"
- open file
quorum.smart-contracts/PartiesConfig.json
- found Kimlic AP (
"Kimlic":{"address":"0xfc1a3f6fd7876d37a677e02de695099d1de12c95","password":"Kimlicp@ssw0rd"}
) - set
:quorum, kimlic_ap_address: "%Kimlic.address%"
- set
:quorum, kimlic_ap_password: "%Kimlic.password%"
- profit
- Create
test_integration.priv.exs
fromtest_integration.example.exs
inquorum/config
- Set quorum credentials in
test_integration.priv.exs
- Run
mix clean
in project root directory - Run test
mix test --only integration