Permalink
Browse files

Validate website from PRs too

  • Loading branch information...
alexarchambault committed Sep 28, 2018
1 parent 12b53fe commit 22bbeeeb36087754701785ed7a50a60cd0f74856
Showing with 8 additions and 3 deletions.
  1. +3 −0 .travis.yml
  2. +5 −3 scripts/update-website.sh
View
@@ -23,7 +23,10 @@ jobs:
- env: PANTS=1 # unused in the script, just to tag the job on the Travis CI UI
# Sanity check for Pants build path.
script: cd modules && ./pants run cli/src/main/scala-2.12:coursier-cli -- fetch --help
- env: WEBSITE=1 # unused from the script, just to know what the job does from the Travis UI
script: scripts/update-website.sh
- stage: release
env: PUSH_WEBSITE=1
script: scripts/update-website.sh
env:
global:
@@ -1,11 +1,13 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(dirname "${BASH_SOURCE[0]}")/.."
sbt scala212 coreJVM/publishLocal cacheJVM/publishLocal
./generate-website.sh
./scripts/generate-website.sh
./push-website.sh
if [ "${PUSH_WEBSITE:-""}" = 1 ]; then
./scripts/push-website.sh
fi

0 comments on commit 22bbeee

Please sign in to comment.