-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsthemis: Downgrade mocha to ^7 for Centos7 (#1003)
* jsthemis: Downgrade mocha to ^7 This version and all its transitive dependencies support node v8 which is the only version we can run on centos 7. It seems like other OS work fine, at least on buildbot. Another option is to fix our scripts on buildbot just for centos 7 so they patch the versions before testing. This may save us from future problems. However, downgrading dev dependency is not that scary, so maybe this approach is okay. * jsthemis: Downgrade mocha on centos 7 Add a separate script for that. It will be caled during make test. * Revert "jsthemis: Downgrade mocha to ^7" This reverts commit 0e7df2e. --------- Co-authored-by: Lagovas <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/wrappers/themis/jsthemis/install_centos7_specific_deps.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# centos:7 has pretty old Node (v8) which is not supported by many packages, | ||
# including mocha - test framework that we use. Therefore, we need to downgrade | ||
# it for testing. The addon itself works fine, we just cannot test it without | ||
# this patch. | ||
|
||
|
||
set -e -o pipefail | ||
|
||
OS=$(cat /etc/*-release | grep '^NAME' | tr -d 'NAME="' || true) | ||
VERSION=$(cat /etc/*-release | grep '^VERSION_ID' | tr -d 'VERSION_ID="' || true) | ||
|
||
if [[ "$OS" == "CentOS Linux" && "$VERSION" == "7" ]]; then | ||
npm install mocha@7 --save-dev | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters