mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-13 18:40:54 +01:00
Polished .travis.yml
This commit is contained in:
parent
43a994245e
commit
e55aa3bc77
24
.travis.yml
24
.travis.yml
@ -43,7 +43,8 @@ cache:
|
|||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
# Install yarn as Travis doesn't support it out of the box
|
# Install yarn as Travis doesn't support it out of the box
|
||||||
before_install: npm install -g yarn
|
before_install:
|
||||||
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
install:
|
install:
|
||||||
@ -51,13 +52,14 @@ install:
|
|||||||
- pip install --user -r requirements.txt
|
- pip install --user -r requirements.txt
|
||||||
|
|
||||||
# Perform build and tests
|
# Perform build and tests
|
||||||
script: yarn run build
|
script:
|
||||||
|
- yarn run build
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Additional builds
|
# Additional builds
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
# Build matrix for additional builds
|
# Matrix for additional builds
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
||||||
@ -65,11 +67,13 @@ matrix:
|
|||||||
- node_js: 5
|
- node_js: 5
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
env:
|
||||||
|
- __TASK=RELEASE
|
||||||
|
|
||||||
# If we're not on a release branch, exit early and indicate success
|
# If we're not on a release branch, exit early and indicate success
|
||||||
#before_install: echo "$TRAVIS_BRANCH" | grep -qE "^[0-9.]+$" && exit 0;
|
before_install: \
|
||||||
# TODO: only for debugging
|
echo "$TRAVIS_BRANCH" | grep -qvE "^[0-9.]+$" && exit 0; \
|
||||||
before_install: TRAVIS_BRANCH_X=1.0.5
|
:;
|
||||||
|
|
||||||
# Install wheel for build
|
# Install wheel for build
|
||||||
install:
|
install:
|
||||||
@ -85,17 +89,15 @@ matrix:
|
|||||||
|
|
||||||
# Install twine and push release to PyPI
|
# Install twine and push release to PyPI
|
||||||
- pip install twine
|
- pip install twine
|
||||||
#- twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
|
- twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
|
||||||
|
|
||||||
# Push to Docker Hub
|
# Push to Docker Hub
|
||||||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||||
- docker tag $TRAVIS_REPO_SLUG $TRAVIS_REPO_SLUG:$TRAVIS_BRANCH_X
|
- docker tag $TRAVIS_REPO_SLUG $TRAVIS_REPO_SLUG:$TRAVIS_BRANCH
|
||||||
- docker tag $TRAVIS_REPO_SLUG $TRAVIS_REPO_SLUG:latest
|
- docker tag $TRAVIS_REPO_SLUG $TRAVIS_REPO_SLUG:latest
|
||||||
- docker push $TRAVIS_REPO_SLUG
|
- docker push $TRAVIS_REPO_SLUG
|
||||||
|
|
||||||
# Build visual tests separately - temporary disabled until tests are stable
|
# # Build visual tests separately - temporary disabled until tests stable
|
||||||
# matrix:
|
|
||||||
# include:
|
|
||||||
# - node_js: 5
|
# - node_js: 5
|
||||||
# addons:
|
# addons:
|
||||||
# artifacts:
|
# artifacts:
|
||||||
|
Loading…
Reference in New Issue
Block a user