This commit is contained in:
		
							
								
								
									
										20
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					name: default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					  - name: setup
 | 
				
			||||||
 | 
					    image: node:lts-alpine
 | 
				
			||||||
 | 
					    commands:
 | 
				
			||||||
 | 
					      - apk add --no-cache curl
 | 
				
			||||||
 | 
					      - yarn
 | 
				
			||||||
 | 
					      - curl https://git.scode.ovh/Timo/standard/raw/branch/master/ci.js > ci.js
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - name: build
 | 
				
			||||||
 | 
					    image: node:lts-alpine
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      TOKEN:
 | 
				
			||||||
 | 
					        from_secret: npm_token
 | 
				
			||||||
 | 
					    commands:
 | 
				
			||||||
 | 
					      - echo "$TOKEN" > ~/.npmrc
 | 
				
			||||||
 | 
					      - npm i -g typescript
 | 
				
			||||||
 | 
					      - node ci.js
 | 
				
			||||||
							
								
								
									
										23
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@@ -1,23 +0,0 @@
 | 
				
			|||||||
pipeline {
 | 
					 | 
				
			||||||
    agent any
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    environment {
 | 
					 | 
				
			||||||
        VERSION = VersionNumber([
 | 
					 | 
				
			||||||
            versionNumberString:
 | 
					 | 
				
			||||||
                '${BUILDS_ALL_TIME}',
 | 
					 | 
				
			||||||
            versionPrefix: '1.8.',
 | 
					 | 
				
			||||||
            worstResultForIncrement: 'SUCCESS'
 | 
					 | 
				
			||||||
        ])
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    stages {
 | 
					 | 
				
			||||||
        stage('Building') {
 | 
					 | 
				
			||||||
            steps {
 | 
					 | 
				
			||||||
                script {
 | 
					 | 
				
			||||||
                    currentBuild.displayName = env.VERSION
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                sh 'yarn ci ${VERSION}'
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										22
									
								
								jenkins.js
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								jenkins.js
									
									
									
									
									
								
							@@ -1,22 +0,0 @@
 | 
				
			|||||||
'use strict';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const https = require ('https');
 | 
					 | 
				
			||||||
const fs = require ('fs');
 | 
					 | 
				
			||||||
const { execSync: exec_sync } = require ('child_process');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const run_file = fs.createWriteStream ('.jenkins.run.js');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const [
 | 
					 | 
				
			||||||
  ,, ...args
 | 
					 | 
				
			||||||
] = process.argv;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
run_file.on ('close', () => {
 | 
					 | 
				
			||||||
  exec_sync (`node .jenkins.run.js ${args.join (' ')}`, { stdio: 'inherit' });
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
https.get (
 | 
					 | 
				
			||||||
  'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js',
 | 
					 | 
				
			||||||
  (msg) => {
 | 
					 | 
				
			||||||
    msg.pipe (run_file);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
);
 | 
					 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@sapphirecode/utilities",
 | 
					  "name": "@sapphirecode/utilities",
 | 
				
			||||||
  "version": "1.0.0",
 | 
					  "version": "1.8.3",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "author": "Timo Hocker <timo@scode.ovh>",
 | 
					  "author": "Timo Hocker <timo@scode.ovh>",
 | 
				
			||||||
  "license": "MIT",
 | 
					  "license": "MIT",
 | 
				
			||||||
@@ -25,7 +25,6 @@
 | 
				
			|||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs",
 | 
					    "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs",
 | 
				
			||||||
    "test": "nyc ava",
 | 
					    "test": "nyc ava",
 | 
				
			||||||
    "ci": "yarn && node jenkins.js",
 | 
					 | 
				
			||||||
    "mutate": "stryker run",
 | 
					    "mutate": "stryker run",
 | 
				
			||||||
    "compile": "tsc --allowJs --declaration --emitDeclarationOnly index.js"
 | 
					    "compile": "tsc --allowJs --declaration --emitDeclarationOnly index.js"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user