language: julia

os:
  - linux

julia:
  - 0.7
  - 1.0
  - nightly

addons:
    apt:
        packages:
            - hdf5-tools

matrix:
   allow_failures:
       - julia: nightly

jobs:
    include:
        - stage: "Documentation"
          julia: 1.0
          os: linux
          script:
            - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
                                                   Pkg.instantiate()'
            - julia --project=docs/ -e 'import Pkg; Pkg.add("Documenter"); include("docs/make.jl")'
          after_success: skip

after_success:
    - julia -e 'cd(Pkg.dir("JuliaFEM")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
