Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Move LiskHQ/lisk-build into LiskHQ/lisk and introduce basic Makefile - Closes #2400 #2545

Merged
merged 12 commits into from
Nov 22, 2018

Conversation

fchavant
Copy link
Contributor

What was the problem?

The build script was separated from the code altough it's tightly coupled with its dependencies.

How did I fix it?

Moved build.sh from LiskHQ/lisk-build into the build subdirectory.

How to test it?

Follow the instructions in build/README.md; it boils down to using Ubuntu 16.04, installing the dependencies and running make LISK_NET=<test|main>.

Review checklist

  • The PR resolves Makefile #2400
  • All new code is covered with unit tests
  • All new code was formatted with Prettier
  • Linting passes
  • Tests pass
  • Commit messages follow the commit guidelines
  • Documentation has been added/updated

build/README.md Outdated Show resolved Hide resolved
build/README.md Outdated Show resolved Hide resolved
build/build.sh Outdated Show resolved Hide resolved
build/build.sh Outdated Show resolved Hide resolved
build/build.sh Show resolved Hide resolved
build/build.sh Show resolved Hide resolved
build/build.sh Show resolved Hide resolved
build/build.sh Outdated Show resolved Hide resolved
build/Makefile Outdated Show resolved Hide resolved
build/build.ignore Outdated Show resolved Hide resolved
@diego-G diego-G removed their request for review November 15, 2018 13:09
Nazgolze
Nazgolze previously approved these changes Nov 20, 2018
Copy link
Contributor

@Nazgolze Nazgolze left a comment

Choose a reason for hiding this comment

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

lgtm

MaciejBaj
MaciejBaj previously approved these changes Nov 20, 2018
Copy link
Contributor

@Nazgolze Nazgolze left a comment

Choose a reason for hiding this comment

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

I missed this before - there's no logs directory in the resulting tarball. After manually adding it in though, the build works

Nazgolze
Nazgolze previously approved these changes Nov 22, 2018
build/Makefile Outdated Show resolved Hide resolved
To use 'npm pack' we now:
 - download Node.JS first,
 - unpack and use it to call 'npm pack' and
 - continue with the build as before
@MaciejBaj
Copy link
Contributor

MaciejBaj commented Nov 22, 2018

Together with @fchavant @Nazgolze @nazarhussain @shuse2 we decided that:

  • .npmignore is used only for build and by developers to mark tests not being part of the production
  • we should use .npmignore to create builds instead of.buildignore
  • .buildignore can be removed as it's not used

LISK_SCRIPTS_FILE="$LISK_SCRIPTS_DIR.tar.gz"
LISK_SCRIPTS_URL="https://github.com/LiskHQ/lisk-scripts/archive/v$LISK_SCRIPTS_VERSION.tar.gz"

NODE_VERSION="8.13.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

I will create a PR to update the node version to 8.13.0 for the sources as well.

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.

Makefile
6 participants