-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2 Add integration test #4
#2 Add integration test #4
Conversation
…service in circleci config file
.circleci/config.yml
Outdated
git clone https://github.com/singnet/platform-contracts.git | ||
cd platform-contracts | ||
npm install | ||
npm install ganache-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually commands above doesn't build platform-contracts they just clone repository and install dependencies. To build contracts you should run: npm run-script compile
and npm run-script package-npm
.
.circleci/config.yml
Outdated
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/snet-cli.git | ||
cd snet-cli | ||
./scripts/blockchain install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to copy contracts from token-contracts
and platform-contracts
instead.
npm install <folder>
command can be used to do this.
.circleci/config.yml
Outdated
# Install other | ||
sudo apt-get -y install libudev-dev libusb-1.0-0-dev | ||
- run: | ||
name: Build platform-contracts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is worth to add token-contracts
as well.
.circleci/config.yml
Outdated
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/snet-daemon.git | ||
cd snet-daemon | ||
./scripts/install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing regarding contracts as for snet-cli
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I update the circleci config to build projects using downloaded parents.
return err | ||
} | ||
|
||
time.Sleep(2 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it is needed? Usually you cannot rely on such delays.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the delay requires adding some logging to the snet-daemon and example service that they are ready. I would prefer to make it as a separate fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raised issue #5
utils.go
Outdated
return cmd, nil | ||
} | ||
|
||
func check_with_timeout(f check_with_timeout_type) (bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add timeout to the function parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timeout and tick arguments are added to the checkWithTimeout func.
utils.go
Outdated
return err | ||
} | ||
|
||
func link_file(file_from string, file_to string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be make_symlink
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to use os.Symlink instead of running ln from a command line.
No description provided.