mirror of
https://github.com/coder/code-server.git
synced 2026-05-28 09:33:49 +02:00
Add linting steps and improve testing steps
This commit is contained in:
145
.drone.yml
145
.drone.yml
@@ -6,22 +6,30 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: codercom/nbin:centos
|
||||
commands:
|
||||
- yum install -y libxkbfile-devel libsecret-devel
|
||||
- . /opt/rh/devtoolset-6/enable
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12
|
||||
commands:
|
||||
- ./scripts/cacher.sh
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: codercom/nbin:centos
|
||||
commands:
|
||||
- yum install -y openssl
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: codercom/nbin:centos
|
||||
commands:
|
||||
- yum install -y libxkbfile-devel libsecret-devel
|
||||
- . /opt/rh/devtoolset-6/enable
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12
|
||||
@@ -40,10 +48,10 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
image: node:12
|
||||
- name: test:build
|
||||
image: codercom/nbin:centos
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
- name: publish:github
|
||||
image: plugins/github-release
|
||||
@@ -90,21 +98,28 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add openssl
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12-alpine
|
||||
@@ -123,10 +138,10 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
- name: test:build
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
- name: publish:github
|
||||
image: plugins/github-release
|
||||
@@ -159,22 +174,27 @@ platform:
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: node:12
|
||||
commands:
|
||||
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: node:12
|
||||
commands:
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: node:12
|
||||
commands:
|
||||
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12
|
||||
@@ -193,10 +213,10 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
- name: test:build
|
||||
image: node:12
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
- name: publish:github
|
||||
image: plugins/github-release
|
||||
@@ -243,22 +263,28 @@ platform:
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add openssl
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12-alpine
|
||||
@@ -277,10 +303,10 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
- name: test:build
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
- name: publish:github
|
||||
image: plugins/github-release
|
||||
@@ -313,22 +339,27 @@ platform:
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: node:12
|
||||
commands:
|
||||
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: node:12
|
||||
commands:
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: node:12
|
||||
commands:
|
||||
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12
|
||||
@@ -347,11 +378,11 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
- name: test:build
|
||||
image: node:12
|
||||
failure: ignore
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
# - name: publish:github
|
||||
# image: plugins/github-release
|
||||
@@ -388,22 +419,28 @@ platform:
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- git submodule update --init
|
||||
|
||||
- name: cache:restore
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- ./scripts/cacher.sh
|
||||
|
||||
- name: lint
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: test
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add openssl
|
||||
- yarn test
|
||||
|
||||
- name: build
|
||||
image: node:12-alpine
|
||||
commands:
|
||||
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
|
||||
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
||||
|
||||
- name: cache:package
|
||||
image: node:12-alpine
|
||||
@@ -422,11 +459,11 @@ steps:
|
||||
when:
|
||||
event: push
|
||||
|
||||
- name: test
|
||||
- name: test:build
|
||||
image: node:12-alpine
|
||||
failure: ignore
|
||||
commands:
|
||||
- yarn test
|
||||
- yarn test:build
|
||||
|
||||
# - name: publish:github
|
||||
# image: plugins/github-release
|
||||
|
||||
Reference in New Issue
Block a user