travis run all test
This commit is contained in:
parent
13384ed93f
commit
be36c3dd0b
18
.travis.yml
18
.travis.yml
|
@ -1,6 +1,7 @@
|
||||||
os:
|
os:
|
||||||
- osx
|
- windows
|
||||||
- linux
|
- linux
|
||||||
|
- osx
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- '10.15.2'
|
- '10.15.2'
|
||||||
|
@ -9,7 +10,20 @@ before_deploy:
|
||||||
- npm install electron-builder -g
|
- npm install electron-builder -g
|
||||||
- cd app
|
- cd app
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; npm run build ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; electron-builder --linux --x64 --ia32 ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; mv ../build/thedesk-*-ia32.zip ../build/thedesk-ia32.zip ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; mv ../build/thedesk-*.zip ../build/thedesk.zip ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; electron-builder --win --ia32 ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; electron-builder --win --ia32 ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk-setup.exe ../TheDesk-setup-ia32.exe ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk*.exe ../TheDesk-ia32.exe ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; electron-builder --win --ia32 ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk-setup.exe ../build/TheDesk-setup-ia32.exe ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk*.exe ../build/TheDesk-ia32.exe ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; electron-builder --win --x64 ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk-setup.exe ../build/TheDesk-setup.exe ; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; mv ../build/TheDesk*.exe ../build/TheDesk.exe ; fi
|
||||||
- cd ../
|
- cd ../
|
||||||
- ls build
|
- ls build
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
@ -83,6 +83,10 @@ builder.build({
|
||||||
fs.renameSync('../build/TheDesk ' + version + '.exe', '../build/TheDesk-ia32.exe');
|
fs.renameSync('../build/TheDesk ' + version + '.exe', '../build/TheDesk-ia32.exe');
|
||||||
fs.renameSync('../build/TheDesk Setup ' + version + '.exe', '../build/TheDesk-setup-ia32.exe');
|
fs.renameSync('../build/TheDesk Setup ' + version + '.exe', '../build/TheDesk-setup-ia32.exe');
|
||||||
retry()
|
retry()
|
||||||
|
}else if (os == "linux") {
|
||||||
|
console.log("Linux")
|
||||||
|
fs.renameSync('../build/thedesk-' + version + '.zip', '../build/TheDesk.zip');
|
||||||
|
fs.renameSync('../build/TheDesk Setup ' + version + '.exe', '../build/TheDesk-setup-ia32.exe');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
@ -7,7 +7,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dist": "build --linux snap",
|
"dist": "build --linux snap",
|
||||||
"build": "node build.js"
|
"build:js": "node build.js",
|
||||||
|
"build": "electron-builder",
|
||||||
|
"build:all": "electron-builder --win --linux",
|
||||||
|
"build:win": "electron-builder --win"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mastodon",
|
"mastodon",
|
||||||
|
@ -59,5 +62,55 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^5.0.1",
|
"electron": "^5.0.1",
|
||||||
"electron-builder": "^20.40.2"
|
"electron-builder": "^20.40.2"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"productName": "TheDesk",
|
||||||
|
"appId": "top.thedesk",
|
||||||
|
"asarUnpack": [
|
||||||
|
"node_modules/itunes-nowplaying-mac"
|
||||||
|
],
|
||||||
|
"directories": {
|
||||||
|
"output": "../build"
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"icon": "build/thedesk.ico",
|
||||||
|
"target": [
|
||||||
|
"nsis",
|
||||||
|
"portable",
|
||||||
|
"appx"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"appx": {
|
||||||
|
"identityName": "53491Cutls.TheDesk",
|
||||||
|
"applicationId": "Cutls.TheDesk",
|
||||||
|
"publisherDisplayName": "Cutls",
|
||||||
|
"publisher": "CN=629757F5-A5EE-474F-9562-B304A89A9FD1",
|
||||||
|
"languages": [
|
||||||
|
"JA-JP",
|
||||||
|
"EN-US"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"oneClick": false,
|
||||||
|
"allowToChangeInstallationDirectory": true,
|
||||||
|
"artifactName": "TheDesk-setup.${ext}"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"icon": "build/icons",
|
||||||
|
"target": [
|
||||||
|
"zip"
|
||||||
|
],
|
||||||
|
"category": "Network"
|
||||||
|
},
|
||||||
|
"mac": {
|
||||||
|
"target": [
|
||||||
|
"dmg",
|
||||||
|
"zip"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"electronDownload": {
|
||||||
|
"version": "5.0.1"
|
||||||
|
},
|
||||||
|
"electronVersion": "5.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user