Skip to content

Commit

Permalink
Issue #4: Add .travis.yml and deploy keys for documentation generatio…
Browse files Browse the repository at this point in the history
…n using Documenter
  • Loading branch information
Raunak Bhattacharyya committed Mar 11, 2020
1 parent d2a3412 commit ccad4f0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
sudo: required
os:
- linux

julia:
- 1.0
- 1.1
- nightly
matrix:
allow_failures:
- julia: nightly
addons:
apt: # apt-get for linux
packages:
- libgtk-3-dev
notifications:
email: false

script:
- git clone https://github.com/JuliaRegistries/General $(julia -e 'import Pkg; println(joinpath(Pkg.depots1(), "registries", "General"))')
- git clone https://github.com/SISL/Registry $(julia -e 'import Pkg; println(joinpath(Pkg.depots1(), "registries", "SISL"))')
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --project --color=yes -e 'import Pkg; Pkg.build(); Pkg.test(coverage=true)'
after_success:
- julia --project -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia --project -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- git clone https://github.com/JuliaRegistries/General $(julia -e 'import Pkg; println(joinpath(Pkg.depots1(), "registries", "General"))')
- git clone https://github.com/SISL/Registry $(julia -e 'import Pkg; println(joinpath(Pkg.depots1(), "registries", "SISL"))')
- julia --project=docs/ -e 'using Pkg; Pkg.add("Documenter")'
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/sisl/AutomotiveInteraction.jl.svg?branch=master)](https://travis-ci.org/sisl/AutomotiveInteraction.jl)
[![Coverage Status](https://coveralls.io/repos/github/sisl/AutomotiveInteraction.jl/badge.svg?branch=master)](https://coveralls.io/github/sisl/AutomotiveInteraction.jl?branch=master)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://sisl.github.io/AutomotiveInteraction.jl/latest)

Driver modeling using the Interaction dataset

Expand Down
6 changes: 3 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ makedocs(
format = Documenter.HTML()
)

#deploydocs(
# repo = "github.com/sisl/AutomotiveInteraction.jl.git"
# )
deploydocs(
repo = "github.com/sisl/AutomotiveInteraction.jl.git"
)

0 comments on commit ccad4f0

Please sign in to comment.