Browse Source

test: drone test

luqianyu 1 year ago
parent
commit
e55b49f0c2
5 changed files with 34 additions and 1 deletions
  1. 19 0
      .drone.yml
  2. 3 1
      .gitignore
  3. 1 0
      scripts/plugin-tam
  4. 0 0
      scripts/publish-plugin-bim.sh
  5. 11 0
      scripts/publish-plugin-tam.sh

+ 19 - 0
.drone.yml

@@ -13,6 +13,25 @@ pipeline:
       - echo //mirrors.finogeeks.club/repository/npm/:_authToken=$${NPM_TOKEN} >> .npmrc
       - npm i yarn -g
       - yarn
+  build-tam:
+    image:  docker.finogeeks.club/base/node-base:10
+    commands:
+      - echo //mirrors.finogeeks.club/repository/npm/:_authToken=$${NPM_TOKEN} >> .npmrc
+      - npm i yarn -g
+      - yarn
+      - rm -rf plugin-tam
+      - git clone https://git.finogeeks.club/finoapp-desktop/plugin-tam.git
+      - cd plugin-tam
+      - yarn 
+      - yarn build
+      - cd dist && zip -q -r dist.zip *
+      - cd ../../
+      - rm -rf static/tam
+      - mkdir -p static/tam
+      - unzip -o plugin-tam/dist/dist.zip -d static/tam
+      - rm -rf plugin-tam
+    when:
+      branch: test 
   docker_latest:
     image: docker.finogeeks.club/drone/docker
     repo:  docker.finogeeks.club/finochat/finchat-desktop-publish

+ 3 - 1
.gitignore

@@ -1 +1,3 @@
-node_modules
+node_modules
+dist
+static

+ 1 - 0
scripts/plugin-tam

@@ -0,0 +1 @@
+Subproject commit 0a66cfbe2364402b3028d8f19a91686cafd04ee7

+ 0 - 0
scripts/publish-plugin-bim.sh


+ 11 - 0
scripts/publish-plugin-tam.sh

@@ -0,0 +1,11 @@
+rm -rf plugin-tam
+git clone https://git.finogeeks.club/finoapp-desktop/plugin-tam.git
+cd plugin-tam
+yarn 
+yarn build
+cd dist && zip -q -r dist.zip *
+cd ../../
+rm -rf static/tam
+mkdir -p static/tam
+unzip -o plugin-tam/dist/dist.zip -d static/tam
+rm -rf plugin-tam