Skip to content

Commit f65dd6a

Browse files
committed
Add Julia recipe test fixtures.
1 parent d2c7406 commit f65dd6a

File tree

4 files changed

+31
-30
lines changed

4 files changed

+31
-30
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# frozen_string_literal: true
2+
3+
system_version = '1.0.1'
4+
5+
# Make sure that Vagarant user is on the box for dokken
6+
include_recipe 'test::dokken'
7+
8+
# System Install
9+
jlenv_system_install 'system'
10+
11+
# Install system wide Julia
12+
jlenv_julia system_version
13+
14+
# Set System global version
15+
jlenv_global system_version
16+
17+
# Uninstall Julia
18+
jlenv_julia system_version do
19+
jlenv_action 'uninstall'
20+
end

test/fixtures/cookbooks/test/recipes/ruby_uninstall.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
rbenv_script 'not-much' do
2-
code 'rake nadda'
1+
# Make is Julia's build orchestration
2+
jlenv_script 'not-much' do
3+
code 'make nadda'
34
end
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Install rbenv and makes it avilable to the selected user
2-
version = '2.4.1'
1+
# Install jlenv and makes it avilable to the selected user
2+
version = '1.0.1'
33

44
# Make sure that Vagarant user is on the box for dokken
55
include_recipe 'test::dokken'
66

7-
# Keeps the rbenv install upto date
8-
rbenv_user_install 'vagrant'
7+
# Keeps the jlenv install upto date
8+
jlenv_user_install 'vagrant'
99

10-
rbenv_plugin 'ruby-build' do
11-
git_url 'https://github.com/rbenv/ruby-build.git'
10+
jlenv_plugin 'julia-build' do
11+
git_url 'https://github.com/jlenv/julia-build.git'
1212
user 'vagrant'
1313
end
1414

15-
rbenv_ruby '2.4.1' do
15+
jlenv_julia '1.0.4' do
1616
user 'vagrant'
1717
end
1818

19-
rbenv_global version do
19+
jlenv_global version do
2020
user 'vagrant'
2121
end

0 commit comments

Comments
 (0)