Skip to content
Snippets Groups Projects
Commit 0c254ba5 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Deploy Cabal haddocks to haskell/cabal-website.

Fixes #3543.
parent 75a781fd
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,15 @@ before_install:
- export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.24/bin:$PATH
- git version
# Set up deployment to the haskell/cabal-website repo.
- git clone --depth=50 https://github.com/haskell/cabal-website.git ../cabal-website
- cd ../cabal-website
- openssl aes-256-cbc -K $encrypted_edaf6551664d_key -iv $encrypted_edaf6551664d_iv -in id_ed25519_cabal_website.aes256.enc -out id_ed25519 -d
- mv id_ed25519 ~/.ssh/id_ed25519
- chmod 400 ~/.ssh/id_ed25519
- git checkout -b --track gh-pages origin/gh-pages
- cd -
install:
# We intentionally do not install anything before trying to build Cabal because
# it should build with each supported GHC version out-of-the-box.
......@@ -33,6 +42,17 @@ install:
script:
- ./travis-script.sh -j
# Deploy Haddocks to the haskell/cabal-website repo.
after_success:
- git config --global user.email "builds@travis-ci.org"
- git config --global user.name "Travis CI User"
- mkdir -p ../cabal-website/doc/html
- mv Cabal/dist/doc/html/Cabal ../cabal-website/doc/html/Cabal
- cd ../cabal-website
- git add .
- git commit --amend -m "Deploy to GitHub ($(date))."
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && git push --force --quiet git@github.com:haskell/haskell-website.git gh-pages
matrix:
allow_failures:
- env: GHCVER=head
......
......@@ -214,6 +214,7 @@ cabalinstall_build() {
./dist/setup/setup sdist
install_from_tarball
cd ..
}
timed "cabal-install dependencies" cabalinstall_dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment