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

feat: pin elixir and erlang versions for asdf #1648

Merged
merged 2 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ jobs:
source ~/.bash_profile
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf install erlang 22.3
asdf install elixir 1.10.2
asdf global elixir 1.10.2
asdf global erlang 22.3
asdf install
- run: make init_test
- run:
command: ./bin/setup
Expand Down Expand Up @@ -467,10 +464,7 @@ jobs:
source $BASH_ENV
asdf plugin-add erlang || asdf plugin-update erlang
asdf plugin-add elixir || asdf plugin-update elixir
asdf install erlang 22.3
asdf install elixir 1.10.2
asdf global elixir 1.10.2
asdf global erlang 22.3
asdf install
no_output_timeout: 2400
- save_cache:
key: v2-asdf-install
Expand Down Expand Up @@ -565,10 +559,7 @@ jobs:
source $BASH_ENV
asdf plugin-add erlang || asdf plugin-update erlang
asdf plugin-add elixir || asdf plugin-update elixir
asdf install erlang 22.3
asdf install elixir 1.10.2
asdf global elixir 1.10.2
asdf global erlang 22.3
asdf install
no_output_timeout: 2400
- save_cache:
key: v2-asdf-install
Expand Down Expand Up @@ -628,10 +619,7 @@ jobs:
source $BASH_ENV
asdf plugin-add erlang || asdf plugin-update erlang
asdf plugin-add elixir || asdf plugin-update elixir
asdf install erlang 22.3
asdf install elixir 1.10.2
asdf global elixir 1.10.2
asdf global erlang 22.3
asdf install
no_output_timeout: 2400
- save_cache:
key: v2-asdf-install
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,3 @@ localchain_contract_addresses.env

#vs code
.tool_versions

# asdf version
.tool-versions

2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
erlang 22.3
elixir 1.10.2
6 changes: 2 additions & 4 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ install_deps
#Linux and MacOS
#asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
#asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
#asdf install erlang 22.3
#asdf install elixir 1.10.2
#asdf global elixir 1.10.2
#asdf global erlang 22.3
#asdf install

if ! command -v mix > /dev/null; then
fancy_echo "It looks like you don't have Elixir installed."
echo "See https://asdf-vm.com/#/core-manage-asdf-vm for instructions."
Expand Down