Skip to content

Commit 30f6ca1

Browse files
committed
Set up basic semaphore
1 parent c3ef6b2 commit 30f6ca1

File tree

4 files changed

+755
-28
lines changed

4 files changed

+755
-28
lines changed

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true
6+
},
7+
"extends": "eslint:recommended",
8+
"overrides": [
9+
{
10+
"env": {
11+
"node": true
12+
},
13+
"files": [
14+
".eslintrc.{js,cjs}"
15+
],
16+
"parserOptions": {
17+
"sourceType": "script"
18+
}
19+
}
20+
],
21+
"parserOptions": {
22+
"ecmaVersion": "latest"
23+
},
24+
"rules": {
25+
}
26+
}

.semaphore/semaphore.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,30 @@ global_job_config:
2525
prologue:
2626
commands:
2727
- checkout
28-
- make show-args
29-
- . vault-setup
30-
- . vault-sem-get-secret cpd_gcloud
31-
- . vault-sem-get-secret ci-reporting
32-
- . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include
33-
- make init-ci
34-
epilogue:
35-
always:
36-
commands:
37-
- make epilogue-ci
3828

3929
blocks:
40-
- name: "Build, Test, Release"
41-
run:
42-
# don't run the build or unit tests on non-functional changes...
43-
when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/']})"
30+
- name: "Linux amd64"
31+
dependencies: [ ]
4432
task:
45-
# You can customize your CI job here
46-
# env_vars:
47-
# # custom env_vars
48-
# prologue:
49-
# commands:
50-
# # custom vault secrets
51-
# # custom prologue commands
33+
agent:
34+
machine:
35+
type: s1-prod-ubuntu20-04-amd64-2
36+
prologue:
37+
commands:
38+
- sem-version node 18.19.0
39+
- node --version
40+
- npm --version
41+
- npx --version
42+
- sudo apt-get update -q
43+
- git submodule update --init --recursive
5244
jobs:
53-
- name: "Build, Test, Release"
45+
- name: "Build from source and test"
5446
commands:
55-
- make build
47+
- sudo apt install -y libcurl4-openssl-dev libcrypto++-dev libssl-dev libzstd-dev
48+
- npm install # this will actually not build anything, but rather, fetch things using node-pre-gyp - so change this later.
5649
- make test
57-
- make release-ci
58-
epilogue:
59-
always:
50+
- name: "ESLint"
6051
commands:
61-
- make epilogue-ci
62-
- make testbreak-after
52+
- npm install --only=dev
53+
- npx eslint lib/kafkajs
54+

0 commit comments

Comments
 (0)