My ImageQuilting.jl package has a big chunk of uncovered code because I am not sure what dependencies I should install on Travis CI before testing its GPU features. After a lot of effort refactoring and playing around with optional dependencies, I managed to have a working test suite on my local machine that includes extra tests whenever
CLFFT.jl are installed.
I am opening this thread to ask you for your help in designing a minimal
.travis.yml that takes care of setting up the environment for
CLFFT.jl. Something along these lines:
language: julia os: - linux - osx before_install: - if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get -qq update sudo apt-get install pocl ... # what else? fi; - if [ $TRAVIS_OS_NAME = "osx" ]; then # Is POCL installed by default in OSX? # what else? fi; script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - julia -e 'Pkg.add("OpenCL"); Pkg.add("CLFFT")' - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("ImageQuilting"); Pkg.test("ImageQuilting"; coverage=true)' after_sucess: - # etc
I tried to borrow code from
.travis.yml files in those packages, but they install many other things that I am not sure are necessary for my test goals. Can we build a solution together for future reference?