For several years I’ve been testing Cmdstan.jl (previously Stan.jl) with a script like below. I updated building the docs mid last year and attempted to use stages, with limited success, but at least early on below script did build and run the cmdstan binary successfully on all examples. Since a few months this is no longer the case (It does try to run the examples but I don’t think it can run the stanc compiler or the subsequent C++ compilation).
I have tried to move the test script to a separate stage, add the julia line to the documentation phase, and many other variations, with no success. It does build the cmdstan binaries but from within Julia I can’t use these.
Does anyone have a suggestion how I could fix this?
Unfortunately this is an even bigger problem for StatisticalRethinkingJulia as I used this to generate the docs using Literate.jl during the Travis testing.
## Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
#- osx
julia:
#- 1.0
- 1.1
#- nightly
matrix:
allow_failures:
- os: osx
- julia: nightly
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- cd $HOME; if [[ ! -d cmdstan ]]; then git clone https://github.com/stan-dev/cmdstan.git; fi
- cd $HOME/cmdstan; git checkout v2.19.0; make stan-update; make build
- export JULIA_CMDSTAN_HOME=$HOME/cmdstan
- cd $TRAVIS_BUILD_DIR
- julia -e 'using Pkg; Pkg.test("CmdStan"; coverage=true)'
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
jobs:
include:
- stage: Documentation
julia: 1.1
os: linux
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- cd $HOME; if [[ ! -d cmdstan ]]; then git clone https://github.com/stan-dev/cmdstan.git; fi
- cd $HOME/cmdstan; git checkout v2.19.0; make stan-update; make build
- export JULIA_CMDSTAN_HOME=$HOME/cmdstan
- cd $TRAVIS_BUILD_DIR
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs --color=yes docs/make.jl
after_success: skip
notifications:
email: false
git:
depth: 99999999