mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Start on build/test.js
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"dependencies": {
|
||||
"babel-core": "5.8.38",
|
||||
"coffee-script": "1.8.0",
|
||||
"colors": "1.1.2",
|
||||
"electron-packager": "7.3.0",
|
||||
"fs-extra": "0.30.0",
|
||||
"glob": "7.0.3",
|
||||
|
||||
22
build/test.js
Executable file
22
build/test.js
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict'
|
||||
|
||||
require('colors')
|
||||
|
||||
const path = require('path')
|
||||
const childProcess = require('child_process')
|
||||
const CONFIG = require('./config')
|
||||
|
||||
const packagedAppPath = path.resolve(__dirname, '..', 'out', 'Atom-darwin-x64')
|
||||
const executablePath = path.join(packagedAppPath, 'Atom.app', 'Contents', 'MacOS', 'Atom')
|
||||
|
||||
const resourcePath = CONFIG.repositoryRootPath
|
||||
const testPath = path.join(CONFIG.repositoryRootPath, 'spec')
|
||||
const testArguments = [
|
||||
'--resource-path', resourcePath,
|
||||
'--test', testPath
|
||||
]
|
||||
|
||||
console.log('Executing core specs...'.bold.green)
|
||||
childProcess.spawnSync(executablePath, testArguments, {stdio: 'inherit'})
|
||||
@@ -33,4 +33,4 @@ dependencies:
|
||||
|
||||
test:
|
||||
override:
|
||||
- out/Atom-darwin-x64/Atom.app/Contents/MacOS/Atom --resource-path $(pwd) --test spec
|
||||
- build/test.js
|
||||
|
||||
Reference in New Issue
Block a user