I'm not quite sure what you are asking for in regards to script lines to
add the job. I downloaded the gitllab runner (vers. 1.4.2) to my local
machine. I ran through the basic set up, using the token from my gitlab
repository and registered it as a service. I then added the .gitlab-ci.yml
file to my repository with the following contents.
before_script:
- npm install
stages:
- test
- deploy
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
mocha:
stage: test
tags:
- javascript
script:
- set NODE_ENV=test
- mocha ./tests/**/*.js
lint:
stage: test
tags:
- javascript
script:
- eslint */**
apidoc:
stage: deploy
tags:
- javascript
script:
- apidoc -e node_modules -o c:\docs\api\
Here is the total output from the lint job. The only thing shown is the npm
install step. Other jobs I've tried appear the same.
Running with gitlab-ci-multi-runner 1.4.2 (bcc1794)
Using Shell executor...
Running on US2976NB...
Fetching changes...
Removing node_modules/
HEAD is now at 800016a Fix eslint glob
>From http://redacted
5030d8a..c66df4a feature/sequelize -> origin/feature/sequelize
Checking out 800016ac as feature/ci...
Checking cache for feature/ci...
$ npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture:
[email protected]
Creating cache feature/ci...
node_modules/: found 13865 matching files
Build succeeded
And finally,
this is what the gitlab runner config.toml contains
concurrent = 1
check_interval = 0
[[runners]]
name = "redacted"
url = "redacted"
token = "redacted"
executor = "shell"
tags = ["javascript"]
[runners.ssh]
[runners.docker]
tls_verify = false
image = ""
privileged = false
disable_cache = false
[runners.parallels]
base_name = ""
disable_snapshots = false
[runners.virtualbox]
base_name = ""
disable_snapshots = false
[runners.cache]
Insecure = false
On Tuesday, August 23, 2016 at 5:54:48 PM UTC-4, Drew Blessing wrote:
>
> Can you show the syntax you used to add both script lines to the actual
> job? Also, please share the build output if you can (sanitize stuff, if
> necessary). What runner version are you using?
>
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/gitlabhq/4e700e61-c2f4-4e83-8734-0a494efa4d9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.