Giter Site home page Giter Site logo

TravisCI support about node-deb HOT 11 CLOSED

heartsucker avatar heartsucker commented on July 22, 2024
TravisCI support

from node-deb.

Comments (11)

vidstige avatar vidstige commented on July 22, 2024

It would be sweet to use some lightweight container that does not need a Docker Hub and all that cloud extra topping. I found mbox that might prove useful.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

Sadly it does not have apt distribution, but it can just be downloaded + built at start of travis build.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

Alright, I tried mbox and it seems sweet. This is what I have so far

https://github.com/heartsucker/node-deb/compare/develop...vidstige:mbox-tests?expand=1

I just copied two test cases and they seem to work fine. When running under mbox, no files will actually be modified on your system, just a sandbox. :-) Also sudo seems to work just fine 👍

Check out my branch and test like this ./mbox ./light-test.sh

My idea is to run things under mbox instead of vagrant, but it was a little bit tangled with the unit tests so I tried it like this first. If you like it you (or me) can make a proper pr out of this.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

And just to connect the dots all the way to travis - When we can run without vagrant and VirtualBox, adding a TravisCI build is easy, I can do most of the work, but you need to enable the build on the official repo (here).

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

@vidstige I've enabled TravisCI on this repo. Is there a reason you're choosing mbox over docker as per #55?

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

That was phrased poorly, and what I meant was "is mbox being lightweight sufficient reason to choose it over docker?" I looked into it, and the last commit on mbox was 3 years ago, and I thought to use docker because it would allow me to test against various images of Debian and Ubuntu. It's not obvious if mbox supports this, and I'm inclined to think it does not. Also based on the popularity of docker, I'd have to reject a PR for mbox.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

No, only reason was that with mbox you don't really need anything extra, you can just checkout and run test suite. No need to install docker and so on. But I think docker would probably be better yes, but then again it will also be some more work,

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

Good thing I just made a comment here before making a PR. 👍

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

One more advantage over docker is it's a bit faster, etc. If you're on a slow network for example downloading a docker image on a few gigs or whatever size they are can be a bit slower. mbox on the other side does not need the network at all, e.g. you can work on the train on cafés, etc.

Perhaps the tests and the container can be separated somehow? Then we could have both. :-)

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

The thing with most of the test suite is that I really care about how it builds / operates on an actual system and that (I think) would be different under mbox. With docker, I'm aiming to set it up to have systemd and all the other things running so we can test some of the more complex features.

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

This is fixed in the testing branch and will eventually get merged into develop. Closing to prevent wasted work from anyone.

from node-deb.

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.