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

Install fails on travis-ci.com #14

Closed
eford opened this issue Nov 30, 2018 · 1 comment
Closed

Install fails on travis-ci.com #14

eford opened this issue Nov 30, 2018 · 1 comment

Comments

@eford
Copy link

eford commented Nov 30, 2018

I'm able to add and use the NBInclude package on my system. But when I try to add the NBInclude package in travis-ci.com, it core dumps. You can see the problem at https://github.com/PsuAstro528/HomeworkTemplate/tree/v0.7
and
https://travis-ci.com/PsuAstro528/HomeworkTemplate/builds/93116947

Note that since this is for classroom use, student's won't be creating a package for every assignment. Hence I wrote a simpler parser to have travis add packages that are used for the exercise based on a REQUIRE file.

Here's the .travis.yml file
language: julia
os:

  • linux
    julia:
  • 1.0

script:

  • julia test/install_required_pacakges.jl
  • julia test/runtests.jl

In essence the test/install_required_packages.jl file
is just doing
import Pkg
Pkg.add("Glob")
Pkg.add("NBInclude")

Is this something that can be fixed by NBInclude? Or is it deeper? Any suggestions?
Thanks.

@eford
Copy link
Author

eford commented Dec 6, 2018

It turns out this wasn't a problem with NBInclude. When different package lists were installed, it appeared to happen randomly. In the end, I removed my install_required_packages.jl script and learned to use julia "Projects" to have Julia install packages. I don't understand why the old way didn't work, but so far the new way is working. The new .travis.yml is
language: julia
os:

  • linux
    julia:
  • 1.0

script:

  • julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate();'
  • julia test/runtests.jl

@eford eford closed this as completed Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant