Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

cleanup travis script+docu #450

Merged
merged 2 commits into from
Oct 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
sudo: required
os:
- linux
#- osx
- osx
julia:
- 0.7
- 1.0
Expand All @@ -13,6 +14,8 @@ julia:
matrix:
allow_failures:
- julia: nightly
- os: osx
- stage: "Documentation" # This shouldn't be necessary
notifications:
email: false
git:
Expand All @@ -27,20 +30,17 @@ script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- if [[ `uname` = "Linux" ]]; then TESTCMD="xvfb-run julia"; else TESTCMD="julia"; fi
- $TESTCMD -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'

## uncomment following lines to deploy documentation
jobs:
include:
- stage: Documentation
julia: 1.2
os: linux
script:
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()))'
- xvfb-run julia --project=docs docs/make.jl
after_success: skip

after_success:
- julia -e 'using Pkg;
import Gtk;
cd(joinpath(dirname(pathof(Gtk))));
Pkg.add("Coverage");
using Coverage;
Coveralls.submit(Coveralls.process_folder())'
# update the documentation
- julia -e 'using Pkg;
ps=Pkg.PackageSpec(name="Documenter", version="0.19");
Pkg.add(ps);
Pkg.pin(ps)'
- $TESTCMD -e 'using Pkg;
import Gtk;
cd(joinpath(dirname(pathof(Gtk))));
ENV["DOCUMENTER_DEBUG"] = "true";
include(joinpath("docs", "make.jl"))'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5 changes: 1 addition & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,4 @@ makedocs(
)

deploydocs(repo = "github.com/JuliaGraphics/Gtk.jl.git",
#julia = "0.7",
target = "build",
deps = nothing,
make = nothing)
target = "build")