Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
0c254ba5
Commit
0c254ba5
authored
8 years ago
by
Mikhail Glushenkov
Browse files
Options
Downloads
Patches
Plain Diff
Deploy Cabal haddocks to haskell/cabal-website.
Fixes #3543.
parent
75a781fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+20
-0
20 additions, 0 deletions
.travis.yml
travis-script.sh
+1
-0
1 addition, 0 deletions
travis-script.sh
with
21 additions
and
0 deletions
.travis.yml
+
20
−
0
View file @
0c254ba5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
travis-script.sh
+
1
−
0
View file @
0c254ba5
...
...
@@ -214,6 +214,7 @@ cabalinstall_build() {
./dist/setup/setup sdist
install_from_tarball
cd
..
}
timed
"cabal-install dependencies"
cabalinstall_dependencies
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment