Skip to content

Added continuous integration to CN-Stream#1

Open
Gjacquenot wants to merge 100 commits intoLHEEA:masterfrom
Gjacquenot:master
Open

Added continuous integration to CN-Stream#1
Gjacquenot wants to merge 100 commits intoLHEEA:masterfrom
Gjacquenot:master

Conversation

@Gjacquenot
Copy link

This pull request adds continuous integration to CN-Stream. In details:

  • Continuous integration is added with travis-ci for linux gfortran 6 to gfortran 8 and for macosx with gfortran 7
  • Continuous integration is added with AppVeyor for windows with mingw
  • CTest is used for 3 tests that are run during CI. (mainCNS, C++ example and fortran example)
  • Code coverage with codecov.io collects data from the different integration run during CI
  • Container Docker is also provided and can be used from a main Makefile, that does all the job.
  • Badges have been added to show the good health of the code: they will have to be updated when merged.

I have noticed some weird behavior, that I have tried to fix in 5287723.

I have tested "-Wall -Wunused" flags to detect some problems, there are still some warnings that require a close look.

With fortran 9, library libFyMc fails to compile. There is an error with final keyword with mfpGeometry.f90

We can discuss all these elements in this thread or in private.

    [ 93%] Building Fortran object example/fortran/CMakeFiles/main.dir/modComm_CN_Stream.f90.o
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/modComm_CN_Stream.f90:132:18:

            write(*,*), 'Unable to load shared library : ', trim(libCNStreamPath)
                    1
    Warning: Legacy Extension: Comma before i/o item list at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/modComm_CN_Stream.f90:136:18:

            write(*,*), 'Load shared library : ', trim(libCNStreamPath)
                    1
    Warning: Legacy Extension: Comma before i/o item list at (1)
    [ 95%] Building Fortran object example/fortran/CMakeFiles/main.dir/CreateInputDict.f90.o
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:18:15:

    WRITE(213,'(a,i,a1,a100)') 'GeneralDimension ',0,';','// Dimensional (=1) or No
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:20:15:

    WRITE(213,'(a,i,a1,a100)') 'GeneralModes',20,';','//Number of modes for first e
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:25:15:

    WRITE(213,'(a,i,a1,a100)') 'CurrentType',0,';','// type of current ; 1 mass tra
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:29:15:

    WRITE(213,'(a,i,a1,a100)') 'n_H ', 100,';','// Number of steps in wave height'
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:30:15:

    WRITE(213,'(a,i,a1,a100)') 'err_type ', 1,';','// Error type / 0 absolute ; 1 r
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:35:15:

    WRITE(213,'(a,i,a1,a100)') 'itermax  ', 999,';','// Maximum number of iteration
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:36:15:

    WRITE(213,'(a,i,a1,a100)') 'increment_type ', 1,';','// Increment type for wave
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:37:15:

    WRITE(213,'(a,i,a1,a100)') 'printonscreen ', 1,';','// Print on screen =1 / do
                1
    Error: Nonnegative width required in format string at (1)
    /home/travis/build/Gjacquenot/CN-Stream/example/fortran/CreateInputDict.f90:38:15:

    WRITE(213,'(a,i,a1,a100)') 'writeoutput ', 0,';','// Write output files =1 / do
                1
    Error: Nonnegative width required in format string at (1)
    make[2]: *** [example/fortran/CMakeFiles/main.dir/CreateInputDict.f90.o] Error 1
    make[1]: *** [example/fortran/CMakeFiles/main.dir/all] Error 2
    make: *** [all] Error 2
    The command "make" failed and exited with 2 during .
…ucceeds: modSolve.f90 Fortran runtime error: Index -1 of dimension 1 of array eta_g outside of expected range (1:1)
…eds: modSolve.f90 Fortran runtime error: Index -1 of dimension 1 of array eta_g outside of expected range (1:1)
@Gjacquenot
Copy link
Author

Hello @gducrozet, could you have a look at this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant