iilyak opened a new pull request #1466: Add elixir installer URL: https://github.com/apache/couchdb/pull/1466 ## Overview While CouchDB itself supports older versions of erlang new integration test suite is written in Elixir which depend on Erlang at least version 19.0. If we are planing to merge the `elixir-suite` branch to master earlier used workaround to manually install Elixir in my opnion is no longer acceptable. This PR adds a helper script to install elixir on following platforms: - debian jessie - centos 7 - osx 10.10 - freeBSD 12 Unfortunately I was unable to debug the script in windows due to lack of access to windows machine and experience with Windows tooling. ## Testing recommendations Linux based distributions can be tested as follows ### Debian 1. Run docker container ``` cd test/elixir docker run -it -w /src -v `pwd`:/src debian:latest bash ``` 2. Execute following commands ``` apt-get update && apt-get install wget unzip --yes /src/configure ``` 3. You should see ``` Elixir 1.6.6 (compiled with OTP 19) ==> OK ``` ### CentOS 1. Run docker container ``` cd test/elixir docker run -it -w /src -v `pwd`:/src centos:latest bash ``` 2. Execute following commands ``` yum -y install unzip /src/configure ``` 3. You should see ``` Elixir 1.6.6 (compiled with OTP 19) ==> OK ``` ### FreeBSD We can test it only partially in docker. Here is the list of commands. 1. Run docker container ``` cd test/elixir docker run -it -w /src -v `pwd`:/src debian:latest bash ``` 2. Execute following commands ``` apt-get update && apt-get install wget unzip xz-utils --yes echo 'echo BSD' > /bin/uname /src/configure ``` 3. You should see ``` ===> Unpacked elixir package /src/.erlang/build/txz/bin//erl: 29: exec: /src/.erlang/build/txz/erts-8.3.5.4/bin/erlexec: not found ``` 4. Check that the following files exist ``` ls /src/.erlang/build/txz/bin/erl ls /src/.erlang/build/txz/erts-8.3.5.4/bin/erlexec ``` ## Related Issues or Pull Requests ## Checklist - [x] Code is written and works correctly; - [ ] Changes are covered by tests; - [ ] Documentation reflects the changes;
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services