Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Fix documentation deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jun 6, 2018
1 parent 822120f commit f253041
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,25 @@ coverage:
Codecov.submit_local(process_folder(), ".")'
coverage: '/\(\d+.\d+\%\) covered/'

# Documenter.jl's `deploydocs` really is only made to work with Travis,
# so we need to fake quite a bit of environment in order for it to work.
# TODO: create an unconditional `deploydocs`, and pick when to deploy in here.
documentation:
stage: postprocess
image: juliagpu/julia:dev
variables:
DOCUMENTER_DEBUG: "true"
TRAVIS_REPO_SLUG: "github.com/JuliaGPU/CUDAnative.jl.git"
TRAVIS_BRANCH: $CI_COMMIT_REF_NAME
TRAVIS_TAG: $CI_COMMIT_TAG
dependencies:
- test:dev
script:
# gitlab-ce#15280
- apt update && apt install -y jq
- export PR_ID=$(curl -s "http://gitlab.ca/api/v4/projects/${CI_PROJECT_ID}/merge_requests?private_token=${OAUTH_TOKEN}&state=opened" | jq -r ".[]|select(.sha == \"$CI_COMMIT_SHA\")|.iid")
- export TRAVIS_PULL_REQUEST=$(if [ "$PR_ID" == "" ]; then echo "false"; else echo "true"; fi)

- apt install -y openssh-client && mkdir /root/.ssh
- julia -e 'using Pkg; Pkg.add("Documenter")'
- julia docs/make.jl
3 changes: 2 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ makedocs(

deploydocs(
repo = "github.com/JuliaGPU/CUDAnative.jl.git",
julia = "0.6",
julia = "",
osname = "",
# no need to build anything here, re-use output of `makedocs`
target = "build",
deps = nothing,
Expand Down

0 comments on commit f253041

Please sign in to comment.