mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Switch back to yarn
This commit is contained in:
parent
cd64b7372a
commit
7485a2ec50
10
.travis.yml
10
.travis.yml
@ -38,22 +38,22 @@ git:
|
|||||||
# Cache dependencies
|
# Cache dependencies
|
||||||
cache:
|
cache:
|
||||||
pip: true
|
pip: true
|
||||||
# yarn: true
|
yarn: true
|
||||||
directories:
|
directories:
|
||||||
- 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:
|
before_install:
|
||||||
# - npm install -g yarn@v0.22.0
|
- npm install -g yarn@v0.22.0
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
install:
|
install:
|
||||||
- npm install --no-optional
|
- yarn install --ignore-optional
|
||||||
- pip install --user -r requirements.txt
|
- pip install --user -r requirements.txt
|
||||||
|
|
||||||
# Perform build and tests
|
# Perform build and tests
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- yarn run build
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Additional builds
|
# Additional builds
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
# Check if "npm install" was executed
|
# Check if "yarn install" was executed
|
||||||
if [[ ! -d "$(npm bin)" ]]; then
|
if [[ ! -d "$(yarn bin)" ]]; then
|
||||||
echo "\"node_modules\" not found:"
|
echo "\"node_modules\" not found:"
|
||||||
echo "npm install"
|
echo "yarn install"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
"$(npm bin)"/gulp build --clean --optimize --revision "$@"
|
"$(yarn bin)"/gulp build --clean --optimize --revision "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user