kopia lustrzana https://github.com/jupyterhub/repo2docker
Update tests for more julia versions
rodzic
cdb3de5690
commit
892d93c5f4
|
@ -1,22 +1,22 @@
|
|||
Julia - REQUIRE: packages and julia version number
|
||||
---------------
|
||||
|
||||
To specify dependencies in Julia, include a REQUIRE file.
|
||||
|
||||
To specify a version of Julia to be installed, the first line of the file must
|
||||
follow the format `julia <version-number>`. For example:
|
||||
```
|
||||
julia 0.7
|
||||
```
|
||||
|
||||
To add package dependencies, the rest of the file can include lines that list
|
||||
the names of packages you'd like to be installed. For example:
|
||||
|
||||
```
|
||||
PyPlot
|
||||
DataFrames
|
||||
```
|
||||
|
||||
Note that `IJulia` is installed by default.
|
||||
|
||||
These packages will all be installed, and then precompiled via `using`.
|
||||
Julia - REQUIRE: packages and julia version number
|
||||
---------------
|
||||
|
||||
To specify dependencies in Julia, include a REQUIRE file.
|
||||
|
||||
To specify a version of Julia to be installed, the first line of the file must
|
||||
follow the format `julia <version-number>`. For example:
|
||||
```
|
||||
julia 0.7
|
||||
```
|
||||
|
||||
To add package dependencies, the rest of the file can include lines that list
|
||||
the names of packages you'd like to be installed. For example:
|
||||
|
||||
```
|
||||
PyPlot
|
||||
DataFrames
|
||||
```
|
||||
|
||||
Note that `IJulia` is installed by default.
|
||||
|
||||
These packages will all be installed, and then precompiled via `using`.
|
|
@ -0,0 +1,5 @@
|
|||
Julia - REQUIRE: test version for julia v1.0
|
||||
---------------
|
||||
|
||||
Starting with julia v0.7 and up, the package manager has changed, so this tests
|
||||
that the julia version can be specified and packages installed correctly.
|
|
@ -0,0 +1,4 @@
|
|||
julia 1.0
|
||||
|
||||
# Julia packages:
|
||||
Compat
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env julia
|
||||
# Verify the version:
|
||||
if VERSION < v"1" || VERSION >= v"1.1"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
try
|
||||
# Test that the package was installed.
|
||||
using Compat
|
||||
|
||||
# Verify that the environment variables are set correctly for julia 1.0+
|
||||
@assert "julia" ∈ readdir(Sys.BINDIR)
|
||||
catch
|
||||
exit(1)
|
||||
end
|
||||
|
||||
exit(0)
|
|
@ -0,0 +1,5 @@
|
|||
Julia - REQUIRE: test version for julia v1.0
|
||||
---------------
|
||||
|
||||
Starting with julia v0.7 and up, the package manager has changed, so this tests
|
||||
that the julia version can be specified and packages installed correctly.
|
|
@ -0,0 +1,4 @@
|
|||
julia 1.1
|
||||
|
||||
# Julia packages:
|
||||
Compat
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env julia
|
||||
# Verify the version:
|
||||
if VERSION < v"1.1" || VERSION >= v"1.2"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
try
|
||||
# Test that the package was installed.
|
||||
using Compat
|
||||
|
||||
# Verify that the environment variables are set correctly for julia 1.0+
|
||||
@assert "julia" ∈ readdir(Sys.BINDIR)
|
||||
catch
|
||||
exit(1)
|
||||
end
|
||||
|
||||
exit(0)
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env julia
|
||||
# Verify the version:
|
||||
if VERSION < v"1"
|
||||
if VERSION < v"1" || VERSION >= v"2"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue