Sha256: a237607f9992de6e13a77c10a05557cd071425b7bdb6341578b0b83da3d07264

Contents?: true

Size: 874 Bytes

Versions: 111

Compression:

Stored size: 874 Bytes

Contents

#!/usr/bin/env bash

set -e

if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
  git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && {
    rm -rf ../gh-pages
    git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv.git ../gh-pages
    mkdir -p ../gh-pages/_source
    cp *.md ../gh-pages/_source
    cp LICENSE ../gh-pages/_source
    currentDir=$(pwd)
    cd ../gh-pages
    $currentDir/node_modules/.bin/gh-pages-generator
    # remove logo from README
    sed -i -E "s/<img[^>]+ajv_logo[^>]+>//" index.md
    git config user.email "$GIT_USER_EMAIL"
    git config user.name "$GIT_USER_NAME"
    git add .
    git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER"
    git push --quiet origin gh-pages > /dev/null 2>&1
  }
fi

Version data entries

111 entries across 68 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.61 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.60 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.59 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.58 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.57 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.56 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.55 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.54 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.53 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.52 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.51 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.50 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.49 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.48 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.47 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.46 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.45 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.44 node_modules/ajv/scripts/travis-gh-pages
immosquare-cleaner-0.1.43 node_modules/ajv/scripts/travis-gh-pages