Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. Aufruf an alle: Travis-CI/AppVeyor für alle Adapter …

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    529

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    5.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.4k

Aufruf an alle: Travis-CI/AppVeyor für alle Adapter …

Scheduled Pinned Locked Moved Entwicklung
36 Posts 8 Posters 8.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AlCalzoneA Offline
    AlCalzoneA Offline
    AlCalzone
    Developer
    wrote on last edited by
    #19

    Interessant, diesmal hakts an ner anderen Stelle (nach dem erfolgreichen Kopieren):

    Adapter copied.
    Install adapter...
      1) "before all" hook: Test tradfri adapter: Start js-controller
    Controller is not running!
    Adapter normal terminated: true
      Test package.json and io-package.json
      ✓ Test package files
      1 passing (28m)
      1 failing
      1) Test tradfri adapter "before all" hook: Test tradfri adapter: Start js-controller:
         Error: timeout of 600000ms exceeded. Ensure the done() callback is being called in this test.
    

    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

    1 Reply Last reply
    0
    • apollon77A Offline
      apollon77A Offline
      apollon77
      wrote on last edited by
      #20

      Sehr interessant … erhöhe mal den timeout ...

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      1 Reply Last reply
      0
      • AlCalzoneA Offline
        AlCalzoneA Offline
        AlCalzone
        Developer
        wrote on last edited by
        #21

        @apollon77:

        Sehr interessant … erhöhe mal den timeout ... `
        Werd ich mal probieren.

        Aber: Es ist zum Mäusemelken… allow_failures aktiviert, und der Job läuft sofort problemlos durch, wenn auch in der dreifachen Zeit...

        https://travis-ci.org/AlCalzone/iobroke ... /229009845

        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

        1 Reply Last reply
        0
        • apollon77A Offline
          apollon77A Offline
          apollon77
          wrote on last edited by
          #22

          LOL

          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
          1 Reply Last reply
          0
          • A Offline
            A Offline
            AlGu
            wrote on last edited by
            #23

            Hallo Apollon,

            ich habe mich auch mal versucht in der Adapter-Entwicklung und wollte jetzt diese Tests auch einbauen. Leider kommt bei mir aber ein Fehler den ich nicht Verstehe.

            Mein Adapter ist dieser hier: https://github.com/AlGu1/hombot und noch nicht im Forum angekündigt, da ich noch mind. die Tests einbauen wollte.

            Die Fehler bei Travis-CI sind z.B.: (Edit: https://travis-ci.org/AlGu1/hombot/jobs/344045512)

            ! ````

            1. Test hombot adapter
              "before all" hook: Test hombot adapter: Start js-controller:
              Uncaught Error: connect ECONNREFUSED 127.0.0.1:9000
              at Object.exports._errnoException (util.js:907:11)
              at exports._exceptionWithHostPort (util.js:930:20)
              at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)
            und bei AppVeyor: (Edit: [https://ci.appveyor.com/project/AlGu1/h … gewji5f5rc](https://ci.appveyor.com/project/AlGu1/hombot/build/job/9ru2qdgewji5f5rc))
            
            >! ````
             1) Test hombot adapter
                   "before all" hook: Test hombot adapter: Start js-controller:
                 Uncaught Error: connect ECONNREFUSED 127.0.0.1:9000
                  at Object.exports._errnoException (util.js:907:11)
                  at exports._exceptionWithHostPort (util.js:930:20)
                  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)
              2) Test hombot adapter
                   "after all" hook: Test hombot adapter: Stop js-controller:
                 Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
                  at test\testAdapter.js:137:13
                  at test\lib\setup.js:649:13
                  at null._onTimeout (test\lib\setup.js:594:17)
              3) Test hombot adapter
                   "after all" hook: Test hombot adapter: Stop js-controller:
                 Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
                  at test\testAdapter.js:137:13
                  at test\lib\setup.js:649:13
                  at null._onTimeout (test\lib\setup.js:594:17)
            >! ````
            
            Sagen dir die Meldungen etwas? Ich habe versucht mich an die Anleitung für das Adapter.Template zu halten. Und bin mir nicht sicher ob ich das auch alles richtig gemacht habe.
            
            Vielen Dank und Gruß
            
            AlGu
            1 Reply Last reply
            0
            • apollon77A Offline
              apollon77A Offline
              apollon77
              wrote on last edited by
              #24

              Sehr interessant …

              bau mal in https://github.com/AlGu1/hombot/blob/ma ... up.js#L308 um das client.connect() ein try/catch ein um die exception abzufangen. geht es dann ?!

              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
              1 Reply Last reply
              0
              • A Offline
                A Offline
                AlGu
                wrote on last edited by
                #25

                Ich glaube ich weiß woran es liegt. Ich habe den Adapter ja noch unter "hombot" im Github und nicht unter "ioBroker.hombot". Denn der "appName" wird aus dem "__dirname" gelesen (getAppName). Dadurch kommt dann z.B. bei AppVeyor folgender Fehler:

                Command failed: npm install https://github.com/hombot/hombot.js-controller/tarball/master --prefix ./  --production
                

                zustande und die Url gibt es so ja nicht.

                Kannst du mir sagen wie ich den Adapter in "ioBroker/hombot" verschieben? Oder kann das nur Bluefox?

                Vielen Dank und Gruß

                AlGu

                1 Reply Last reply
                0
                • AlCalzoneA Offline
                  AlCalzoneA Offline
                  AlCalzone
                  Developer
                  wrote on last edited by
                  #26

                  @AlGu:

                  Kannst du mir sagen wie ich den Adapter in "ioBroker/hombot" verschieben? `
                  Eigentlich musst du nur dein Repo umbenennen zu ioBroker.hombot. Meine Adapter sind auch alle unter meinem Namen, z.B. https://github.com/AlCalzone/ioBroker.tradfri und da funktionieren die Tests.

                  Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                  1 Reply Last reply
                  0
                  • apollon77A Offline
                    apollon77A Offline
                    apollon77
                    wrote on last edited by
                    #27

                    Das interesanteste ist ja das folgende: Ich habe gerade einen fork gemacht und travis-ci läuft bei mir …

                    https://travis-ci.org/Apollon77/ioBroke ... /344201789

                    Einziger Fehler weil node 4.x Tests fehlschlagen ist das dort "request" noch nicht in nodejs drin war und es in den "dependecies" fehlt. Sobald Du die aktuelle "request" dep in die package schreibst klappt bei mir alles.

                    Und ich habe NICHTS verändert am Code. Es ist dein aktueller Git-Stand.

                    Hast Du irgendwas spezielles bei travis-ci eingestellt bei Dir?

                    PS: Hast Du das mit dem try/catch mal versucht?

                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                    1 Reply Last reply
                    0
                    • AlCalzoneA Offline
                      AlCalzoneA Offline
                      AlCalzone
                      Developer
                      wrote on last edited by
                      #28

                      @apollon77:

                      https://travis-ci.org/Apollon77/ioBroke … /344201789 `
                      Da steht jetzt "ioBroker." im Repo-Namen. Daran wirds liegen.

                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                      1 Reply Last reply
                      0
                      • apollon77A Offline
                        apollon77A Offline
                        apollon77
                        wrote on last edited by
                        #29

                        aaaahhhh jetzt seh ich das … ja na klar wenn "ioBroker" im Reponamen komplett fehlt dann gehts schieff :-)) klatsch (das war die hand vor die Stirn und so)

                        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AlGu
                          wrote on last edited by
                          #30

                          Danke jetzt klappt es. Ich muss nun nur noch vernünftige Tests in die Datei einbauen.

                          Viele Grüße

                          AlGu

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SchuetzeSchulz
                            wrote on last edited by
                            #31

                            Hallo zusammen,

                            kann mir jemand helfen? Ich baue gerade zum ersten Mal diese Tests ein, bekomme aber folgenden Fehler:

                              1) Test hp-ilo adapter Test hp-ilo adapter: Check if adapter started:
                                  Uncaught AssertionError: expected 'Cannot check connection' to not equal 'Cannot check connection'
                                  + expected - actual
                            
                                  at C:\projects\ioBroker.hp-ilo\test\testAdapter.js:108:35
                                  at checkConnectionOfAdapter (C:\projects\ioBroker.hp-ilo\test\testAdapter.js:18:17)
                                  at null._onTimeout (C:\projects\ioBroker.hp-ilo\test\testAdapter.js:28:17)
                              2) Test package.json and io-package.json Test package files:
                                 AssertionError: expected undefined to exist
                                  at Context. <anonymous>(C:\projects\ioBroker.hp-ilo\test\testPackageFiles.js:30:44)
                                  at callFnAsync (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runnable.js:349:8)
                                  at Test.Runnable.run (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runnable.js:301:7)
                                  at Runner.runTest (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:422:10)
                                  at C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:528:12
                                  at next (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:342:14)
                                  at C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:352:7
                                  at next (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:284:14)
                                  at Immediate._onImmediate (C:\projects\ioBroker.hp-ilo\node_modules\mocha\lib\runner.js:320:5)</anonymous> 
                            

                            Wo muss ich suchen?

                            1 Reply Last reply
                            0
                            • apollon77A Offline
                              apollon77A Offline
                              apollon77
                              wrote on last edited by
                              #32

                              Schick mir mal den travis Link direkt

                              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SchuetzeSchulz
                                wrote on last edited by
                                #33

                                https://travis-ci.org/SebastianSchultz/ … /366740282

                                1 Reply Last reply
                                0
                                • apollon77A Offline
                                  apollon77A Offline
                                  apollon77
                                  wrote on last edited by
                                  #34

                                  Ursache travis Ausgabe ab Zeile 812 … bei nodejs 4 ist request nicht dabei und muss in die dependencies

                                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                  1 Reply Last reply
                                  0
                                  • apollon77A Offline
                                    apollon77A Offline
                                    apollon77
                                    wrote on last edited by
                                    #35

                                    Und bei den anderen ists ein Fehler in der ip-Package.json … musst schauen was er genau im angegebenen Testfile prüft.

                                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SchuetzeSchulz
                                      wrote on last edited by
                                      #36

                                      Danke, Tests jetzt erfolgreich absolviert :)

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      615

                                      Online

                                      32.7k

                                      Users

                                      82.5k

                                      Topics

                                      1.3m

                                      Posts
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                      ioBroker Community 2014-2025
                                      logo
                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Home
                                      • Recent
                                      • Tags
                                      • Unread 0
                                      • Categories
                                      • Unreplied
                                      • Popular
                                      • GitHub
                                      • Docu
                                      • Hilfe