Coder Social home page Coder Social logo

Continuous integration about examples HOT 25 CLOSED

mlpack avatar mlpack commented on July 17, 2024
Continuous integration

from examples.

Comments (25)

yashsharan avatar yashsharan commented on July 17, 2024

Hi,I would like to work on this issue.Thanks.

from examples.

zoq avatar zoq commented on July 17, 2024

Nice, let me know if you need any help.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

@zoq I went through the travis.yml file in the mlpack repo. What I observed is that the file would be mostly same for this repo right?

from examples.

zoq avatar zoq commented on July 17, 2024

Yes, we can remove the python part and the step for running the tests.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

So for the python part if i'm not wrong wrong the env: part of the code as well as the code which checks pip2 and pip3 are installed wont be needed right?
Also for the test part is this the code you are referring to?
install:

  • mkdir build && cd build && cmake -DDEBUG=OFF -DPROFILE=OFF .. && make -j

from examples.

zoq avatar zoq commented on July 17, 2024

You are right about the python part, the test part is:

script:
  - CTEST_OUTPUT_ON_FAILURE=1 travis_wait 30 ctest -j2

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

As suggested by you I removed those part of code from the file.But when i'm running the travis CI,my build is failing.
Here's the error which it is showing:

The command "mkdir build && cd build && cmake $CMAKE_OPTIONS .. && make -j2" failed and exited with 1 during .

from examples.

zoq avatar zoq commented on July 17, 2024

How does the travis file look like? Can you open a PR?

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

I have created a PR.I will squash the commits at the end once my code runs correctly.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

My travis.yml build is successful now.Should I squash all the commits and send a PR?

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

@zoq I'm thinking of integrating appveyor CI.If i'm not wrong the test script wont be needed right?

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

I had one doubt. I cant seem to figure out in which line is the make command getting executed in appveyor.yml file

from examples.

zoq avatar zoq commented on July 17, 2024

configure/cmake step:
https://github.com/mlpack/mlpack/blob/0e14562937fbbe3fba007d93e251d07496e7dced/.appveyor.yml#L36

build/make step:
https://github.com/mlpack/mlpack/blob/0e14562937fbbe3fba007d93e251d07496e7dced/.appveyor.yml#L37

from examples.

zoq avatar zoq commented on July 17, 2024

You are right the test step isn't needed.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

so what does line 38 and 39 do?( - 7z a mlpack-windows-no-libs.zip "%APPVEYOR_BUILD_FOLDER%\build\Release*.exe")

from examples.

zoq avatar zoq commented on July 17, 2024

Line 38 and 39 creates an archive that contains the library and or executables.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

So basically i will be building both mlpack and model repo. And that archive would be needed to be created for both the libraries right?

from examples.

zoq avatar zoq commented on July 17, 2024

I think we don't have to create an archive for the models repo.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

ohh i see.Thank you

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

I guess I need a little help.In the final step for cmake for the models repository,an error pops up saying that CmakeList.txt is not present even though it is.

cd`C:\projects\models && mkdir build && cd build
cmake -G "Visual Studio 14 2015 Win64" -DBLAS_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DLAPACK_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/mlpack/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DARMADILLO_INCLUDE_DIR="%APPVEYOR_BUILD_FOLDER%/armadillo-7.800.2/include" -DARMADILLO_LIBRARY:FILEPATH="C:\projects\models\armadillo-7.800.2\build\Debug\armadillo.lib" -DBOOST_INCLUDEDIR:PATH="C:\projects\models\boost.1.60.0.0\lib\native\include"
CMake Error: The source directory "C:/projects/models/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Here's the error which is coming.

from examples.

zoq avatar zoq commented on July 17, 2024

CMake Error: The source directory "C:/projects/models/build" does not appear to contain CMakeLists.txt.

Are you sure you are using the correct path, C:/projects/models is the one that has the CMake file.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

Yeah I guessed that too but where I'm getting confused is that for building mlpack repo, similar code has been written and there no error is there so why is it showing an error when i'm using almost same code to build the model repo?
Here's the appveyor file which i have written: https://github.com/yashsharan/models/blob/master/.appveyor.yml

from examples.

zoq avatar zoq commented on July 17, 2024

Not sure what the issue is, you could open a PR, or I guess another idea is to check the output with some dir, cat commands.

from examples.

yashsharan avatar yashsharan commented on July 17, 2024

I will open a PR first then. Also will writing cmake .. -G instead of cmake -G work ,like we compile it in linux?

from examples.

zoq avatar zoq commented on July 17, 2024

yes, this should work.

from examples.

Related Issues (20)

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.