Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Implemented NodeJS compatibility test. #128

Merged
merged 12 commits into from
Apr 4, 2018

Conversation

RazzM13
Copy link
Contributor

@RazzM13 RazzM13 commented Apr 2, 2018

Enhances #111.

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 2, 2018

I believe #127 should be merged first.

@martysweet
Copy link
Owner

@RazzM13 See comments on #111

@martysweet
Copy link
Owner

Can the checking scripts be moved to a new folder? Perhaps tools/nodejs_compatibility_checker

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 3, 2018

Addressed the above mentioned issue, the last one from #111 and I also took the liberty of guarding against a false-negative scenario. Ready for review :)

Copy link
Owner

@martysweet martysweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff, a few indentation issues but otherwise ready to go!


# Run the tests on all available versions
for version in ${node_versions}; do
echo "Testing node-${version}!";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this for block be indented?

source ~/.envirius/nv

if [ $? -ne 0 ]; then
echo "Unable to install envirius!"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent


# Dump available versions to file
for version in ${node_versions}; do
echo ${version} >> nodes_available.log
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent


# Cache NodeJS environments
for version in ${node_versions}; do
echo "Adding NodeJS ${version} into environment cache!" && \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent

echo "***Started test-run for ${version}***";
cat "test_node_${version}.log";
echo "***Finished test-run for ${version}***";
done
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch

@@ -28,6 +28,21 @@ jobs:
- run:
name: test
command: npm test
- run:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

22 seconds, awesome!

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 4, 2018

I think everything should be fine now ;)

# Quick check
if [ "$1" == "--quick" ]; then
lts_versions=$(
for lts in 4 6 8 9; do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lts_version=$(
    for lts in 4....

    done
)

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 4, 2018

I'm really bad with indentation :)) Hopefully it's ok now.

@martysweet martysweet merged commit c995eda into martysweet:master Apr 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants