Coder Social home page Coder Social logo

devops's People

Contributors

mohawk2 avatar zmughal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devops's Issues

Tell Devel::Cover to ignore files outside current build directory

This issue comes up in the coverage results of Test-PDL:

-pdl-commits:#pdl- [Test-PDL] [build/push]: โˆ€S โœ“ a8ba9e2 | Zaki Mughal [sivoais] | Use shared GitHub Actions from PDLPorters (#6)
https://github.com/ebaudrez/Test-PDL/actions/runs/1557475038
[@sivoais] one odd thing with the coverage above: it thinks that a file from the PDL distribution is part of the coverage
[@sivoais] a file that is located in ~/.cpanm ??
[@sivoais] i saw this locally as well, but didn't bother tracking it down in Devel::Cover
[@sivoais] so even though Test-PDL's coverage is really 100%, it comes out at 76% on Coveralls

Coveralls link is: https://coveralls.io/jobs/91303010.

This is possibly just a matter of adding a -ignore_re option to the cover
command, but will need to be tested.

$ $TEST_RUNNER_PREFIX $MYPERL -S cover -test -relative_only -gcov_chdir -report Coveralls
   ----------------------------------- ------ ------ ------ ------ ------ ------
  File                                  stmt   bran   cond    sub   time  total
  ----------------------------------- ------ ------ ------ ------ ------ ------
  ...PDL-2.063/Basic/Core/Types.pm.PL   34.1   19.2   20.0   33.3   43.0   31.0
  blib/lib/Test/Deep/PDL.pm            100.0   75.0    n/a  100.0    5.3   97.7
  blib/lib/Test/PDL.pm                 100.0  100.0  100.0  100.0   51.6  100.0
  Total                                 73.3   69.4   81.8   58.2  100.0   70.3
  ----------------------------------- ------ ------ ------ ------ ------ ------

Solaris testing procedure

Recording the steps taken for testing on Solaris:

Set up VM

# using a Vagrant box from <http://www.vagrantbox.es/>
vagrant  box add solaris-11.2 http://www.benden.us/vagrant/solaris-11.2.box
vagrant init solaris-11.2
vagrant up
vagrant ssh

Download SolarisStudio 12.3 from here. You will need to create an Oracle account.

Prepare PDL build

cd /vagrant
tar xvjf SolarisStudio12.3-solaris-x86-bin.tar.bz2
echo 'export PATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin:$PATH;' >> ~/.bashrc
echo 'export MANPATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc

sudo perl -MCPAN -eshell
> install App::cpanminus

echo 'export PATH=/usr/perl5/5.12/bin::$PATH;' >> ~/.bashrc
echo 'export MANPATH=/usr/perl5/5.12/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc


git clone https://github.com/PDLPorters/pdl.git
cd pdl

sudo cpanm Devel::CheckLib
sudo cpanm --installdeps .

\curl -L http://install.perlbrew.pl | bash
echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
. ~/.bashrc

Automate the Coveralls, Travis-CI, and Appveyor enabling

  • Copy and check existing configuration files for multiple repos (.travis.yml, appveyor.yml).
  • Check that the settings are enabled on each site.
  • Check that the badges exist already in the README.md. Otherwise en-badgen them.

SciPDL installer

Automate the process of building a SciPDL installer for Mac OSX, Windows, and (maybe) Linux.

Add config deps step to ci-dist

Use an argument to the ci-dist action that lists the config time deps and
install as:

  shell: bash
  run: |
    $MYPERL -S cpanm --build-args -j4 --dev -n ${{ config-deps }} || ( cat ~/.cpanm/build.log && false )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.