Skip to content
Permalink
Browse files

Use yarn for website builds (#5350)

  • Loading branch information
jimschubert committed Feb 17, 2020
1 parent 15b8210 commit ce997a18fe97bdc737bf4fb88a4966d91632e2fe
Showing with 6 additions and 3 deletions.
  1. +6 −3 .travis.yml
@@ -11,6 +11,7 @@ before_cache:
- rm -fr $HOME/.m2/repository/org/openapitools/

cache:
yarn: true
directories:
- $HOME/.m2
- $HOME/.ivy2
@@ -56,6 +57,8 @@ addons:
- petstore.swagger.io

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
- export PATH="$HOME/.yarn/bin:$PATH"
# install rust
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
# required when sudo: required for the Ruby petstore tests
@@ -108,7 +111,7 @@ before_install:
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
gpg --check-trustdb ;
fi;
- pushd .; cd website; npm install; popd
- pushd .; cd website; yarn install; popd

install:
# Add Godeps dependencies to GOPATH and PATH
@@ -184,8 +187,8 @@ after_success:
git config --global user.name "${GH_NAME}";
git config --global user.email "${GH_EMAIL}";
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
npm install;
GIT_USER="${GH_NAME}" npm run-script publish-gh-pages;
yarn install;
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
fi;

env:

0 comments on commit ce997a1

Please sign in to comment.
You can’t perform that action at this time.