Skip to content

Commit

Permalink
Forcing Circle to run website build step, but not commit (jestjs#3390)
Browse files Browse the repository at this point in the history
Remove currently selected language from dropdown

Update Circle.yml

Changing lines again

Switching to manual install

Fixed.
  • Loading branch information
ericnakagawa authored and cpojer committed Apr 27, 2017
1 parent 91c5b95 commit 98fb73f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
10 changes: 7 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies:
fi
- nvm install 4
- nvm install 6
- wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb; sudo dpkg -i crowdin.deb

cache_directories:
- ~/.yarn
Expand Down Expand Up @@ -43,8 +42,13 @@ deployment:
- git config --global user.email "[email protected]"
- git config --global user.name "Website Deployment Script"
- echo "machine github.com login jest-bot password $GITHUB_TOKEN" > ~/.netrc
# crowdin install start
- sudo apt-get install default-jre
- wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
- sudo dpkg -i crowdin.deb
# crowdin install end
# removed calls to "yarn crowdin-upload" and "yarn crowdin-download" because of an issue
# with yarn not inheriting environment variables
- cd website && crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master
- cd website && crowdin-cli --config ../crowdin.yaml download -b master
- cd website && crowdin --config ../crowdin.yaml upload sources --auto-update -b master
- cd website && crowdin --config ../crowdin.yaml download -b master
- cd website && GIT_USER=jest-bot npm run gh-pages
3 changes: 3 additions & 0 deletions website/core/nav/HeaderNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class LanguageDropDown extends React.Component {
if (lang.tag == this.props.language) {
currentLanguage = lang.name;
}
if (lang.tag == this.props.language) {
return;
}
enabledLanguages.push(
<li key={lang.tag}>
<a href={'/jest/' + lang.tag}>
Expand Down
2 changes: 1 addition & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const languages = require('./languages.js');

const enabledLanguages = [];
languages.filter(lang => lang.enabled).map(lang => {
enabledLanguages.push(lang.tag);
enabledLanguages.push(lang);
});
siteConfig['languages'] = enabledLanguages;

Expand Down

0 comments on commit 98fb73f

Please sign in to comment.