Commit 4a13b4f7 authored by Timon Stampfli's avatar Timon Stampfli

fixing ci

parent 64310851
Pipeline #4903 failed with stages
in 1 minute and 14 seconds
......@@ -4,10 +4,9 @@ stages:
- publish
build:
stage: build
image: node:10
image: node:12
script:
- npm i
- wget -qO ./node_modules/vscode/vscode.d.ts https://raw.githubusercontent.com/Microsoft/vscode/1.27.2/src/vs/vscode.d.ts
- npm run build-package
- mv soicode-*.vsix soicode-latest.vsix
dependencies:
......@@ -25,20 +24,22 @@ publish:
image: node:10
script:
- npm i
- wget -qO ./node_modules/vscode/vscode.d.ts https://raw.githubusercontent.com/Microsoft/vscode/1.27.2/src/vs/vscode.d.ts
- npx vsce publish -p $PUBLISHING_TOKEN $CI_COMMIT_TAG
dependencies:
- build-helper
build-helper:
stage: build-deps
image: golang:1.11
image: golang:1.13
variables:
GO111MODULE: "on"
script:
- cd helper && go build
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./out/helper-linux-amd64 ./helper
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./out/helper-windows-amd64 ./helper
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./out/helper-darwin-amd64 ./helper
artifacts:
untracked: false
paths:
- helper/helper
- out/helper*
expire_in: 1 day
......@@ -10,6 +10,7 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
// "--disable-extensions"
......
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
\ No newline at end of file
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"dependsOn": ["Build go helper"],
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build go helper",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"
},
"command": "CGO_ENABLED=0 go build -o ./out/helper-linux-amd64 ./helper"
}
]
}
......@@ -259,12 +259,8 @@
"icon": "images/soilogo.png",
"homepage": "https://soi.ch",
"scripts": {
"vscode:prepublish": "npm run compile && npm run build-helper",
"build-helper-linux": "CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./out/helper-linux-amd64 ./helper",
"build-helper-windows": "CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./out/helper-windows-amd64 ./helper",
"build-helper-darwin": "CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./out/helper-darwin-amd64 ./helper",
"build-helper": "npm run build-helper-linux && npm run build-helper-windows && npm run build-helper-darwin",
"compile": "build-helper && tsc -p ./",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"build-package": "vsce package",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment