Skip to content

Commit

Permalink
Add --no-website flag to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Oct 12, 2018
1 parent a5215d8 commit 1dd8be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ cache:
- packages/react-router-config/node_modules
- packages/react-router-dom/node_modules
- packages/react-router-native/node_modules
- packages/react-router-redux/node_modules
- website/node_modules
install:
- npm ci
before_script:
- npm run build
- npm run build -- --no-website
before_deploy:
- openssl aes-256-cbc -K $encrypted_70c5e56b421c_key -iv $encrypted_70c5e56b421c_iv
-in website_deploy_key.enc -out website_deploy_key -d
Expand Down
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const cwd = process.cwd();
}
);

// Skip building the website in CI.
if (!process.env.CI) {
if (!process.argv.includes("--no-website")) {
process.chdir(path.resolve(__dirname, "../website"));
exec("npm run build");
}
Expand Down

0 comments on commit 1dd8be5

Please sign in to comment.