Public | Automated Build

Last pushed: 2 months ago
Short Description
Scripts to download data and run TA on forex instruments.
Full Description

To cut a new release

Look at differences since last release and update Changes file

git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --stat
vi Changes # Add a list of changes to the "Changes" file

vi dist.ini # Update the version number

#cut release
dzil release

#update .spec file
cpanspec Finance-HostedTrader-*.tar.gz
vimdiff perl-Finance-HostedTrader.spec spec/perl-Finance-HostedTrader.spec

#build rpm
cp Finance-HostedTrader-0.021.tar.gz ~/rpmbuild/SOURCES/
cp spec/perl-Finance-HostedTrader.spec ~/rpmbuild/SPECS/

rpmbuild -bs ~/rpmbuild/SPECS/perl-Finance-HostedTrader.spec
mock rebuild --no-clean ~/rpmbuild/SRPMS/perl-Finance-HostedTrader-0*.src.rpm
mock install /var/lib/mock/fedora-20-x86_64/result/perl-Finance-HostedTrader-0.021-1.fc20.noarch.rpm

#commit spec file
git commit -m "Updated spec file for latest version" spec/perl-Finance-HostedTrader.spec

#Upload file to repository
find /var/tmp/mach/fedora-16-x86_64-updates -name "perl-Finance-HostedTrader-*.rpm" -exec scp -P $PORT {} joao@zonalivre.org:~/rpmbuild/RPMS/noarch/. \;
ssh -p $PORT joao@zonalivre.org createrepo ~/rpmbuild/RPMS/noarch

#Install updated rpm
yum clean all
yum -y update perl-Finance-HostedTrader

Docker Pull Command
Owner
fxtrader
Source Repository