Étienne Loks
Étienne Loks

Reputation: 165

GitLab CI runner doesn't build

I have just installed gitlab-ci-multi-runner by following the documentation https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md

I use the public server ci.gitlab.com and the registration of the runner seems OK (the runner appears with a green light). With debug activated I can see that the runner fetch regularly the CI server.

But when a new commit is pushed no build is done. Everything is green: https://ci.gitlab.com/projects/4656 but no test is done...

My .gitlab-ci.yml is pretty simple:

before_script:
  - apt install python3-pip
  - pip3 install -q -r requirements.txt
master:
  script: "make test"
  only:
    - master
script:
  - python setup.py test

By the way I can find any error message and I don't know where to search.

I am pretty knew to CI and there is perhaps an obvious point I am missing.

Upvotes: 0

Views: 2332

Answers (1)

Kerry Hatcher
Kerry Hatcher

Reputation: 601

Give this a try. this is assuming your pyunit tests are in a file called runtests.py in the working directory.

before_script:
  - apt install python3-pip
  - pip3 install -q -r requirements.txt

master:
  script: "python runtests.py"
  only:
    - master

Upvotes: 4

Related Questions