2 changed files with 188 additions and 62 deletions
@ -1,61 +1,141 @@ |
|||||||
version: 0.5.18-{build} |
version: 0.5.18-{build} |
||||||
|
image: |
||||||
|
- Visual Studio 2017 |
||||||
|
- Ubuntu |
||||||
environment: |
environment: |
||||||
matrix: |
matrix: |
||||||
- nodejs_version: '8' |
- nodejs_version: '10' |
||||||
SENCHA_VER: '6.5.3.6' |
JAVA_HOME: C:\Program Files\Java\jdk1.8.0 |
||||||
|
npm_config_loglevel: 'error' |
||||||
|
SENCHA_VER: '6.6.0.13' |
||||||
|
TAGPERM: |
||||||
|
secure: FKiBHTmmImO3M5FhK2TMrnpojiT6ITuJ/LvrdLjj2xD0VkcYtXuvQr5nqoxouvph |
||||||
|
stack: node 10, jdk 8 |
||||||
pull_requests: |
pull_requests: |
||||||
do_not_increment_build_number: true |
do_not_increment_build_number: true |
||||||
branches: |
branches: |
||||||
only: |
only: |
||||||
- master |
- master |
||||||
|
- testing |
||||||
|
except: |
||||||
|
- snapshot-master |
||||||
|
- snapshot-testing |
||||||
|
|
||||||
init: |
init: |
||||||
- cmd: git config --global core.autocrlf input |
- ps: git config --global core.autocrlf input |
||||||
install: |
install: |
||||||
- ps: >- |
- ps: >- |
||||||
Install-Product node ${env:nodejs_version} |
|
||||||
|
|
||||||
Invoke-WebRequest -Uri http://cdn.sencha.com/cmd/${env:SENCHA_VER}/no-jre/SenchaCmd-${env:SENCHA_VER}-windows-no_jre.zip -OutFile ${env:TEMP}\Sencha.zip |
If ($isWindows) { |
||||||
|
Install-Product node ${env:nodejs_version} |
||||||
|
Invoke-WebRequest -Uri http://cdn.sencha.com/cmd/${env:SENCHA_VER}/no-jre/SenchaCmd-${env:SENCHA_VER}-windows-no_jre.zip -OutFile .\Sencha.zip |
||||||
|
} ElseIf ($isLinux) { |
||||||
|
Invoke-WebRequest -Uri http://cdn.sencha.com/cmd/${env:SENCHA_VER}/no-jre/SenchaCmd-${env:SENCHA_VER}-linux-amd64.sh.zip -OutFile .\Sencha.zip |
||||||
|
} |
||||||
|
|
||||||
Expand-Archive -Path ${env:TEMP}\Sencha.zip -DestinationPath $env:TEMP\SenchaCmd |
Expand-Archive -Path .\Sencha.zip -DestinationPath .\SenchaCmd |
||||||
|
|
||||||
Invoke-Expression "${env:TEMP}\SenchaCmd\SenchaCmd-${env:SENCHA_VER}-windows-no_jre.exe -q -Dall=true" |
If ($isWindows) { |
||||||
|
Invoke-Expression ".\SenchaCmd\SenchaCmd-${env:SENCHA_VER}-windows-no_jre.exe -q -Dall=true" |
||||||
|
$env:PATH = "${env:USERPROFILE}\bin\Sencha\Cmd;${env:PATH}" |
||||||
|
} ElseIf ($isLinux) { |
||||||
|
Invoke-Expression "chmod +x ./SenchaCmd/SenchaCmd-${env:SENCHA_VER}-linux-amd64.sh" |
||||||
|
Invoke-Expression "./SenchaCmd/SenchaCmd-${env:SENCHA_VER}-linux-amd64.sh -q -Dall=true" |
||||||
|
$env:PATH = "${env:HOME}/bin/Sencha/Cmd:${env:PATH}" |
||||||
|
} |
||||||
|
|
||||||
$env:PATH = "${env:USERPROFILE}\bin\Sencha\Cmd\${env:SENCHA_VER};${env:PATH}" |
Copy-Item env-sample.js env.js |
||||||
|
|
||||||
Copy-Item env-sample.js env.js |
git reset --hard HEAD |
||||||
- cmd: >- |
|
||||||
git reset --hard HEAD |
|
||||||
|
|
||||||
npm i npm@latest -g |
npm i npm@latest -g |
||||||
|
|
||||||
npm install |
npm install |
||||||
|
|
||||||
|
npm prune |
||||||
|
|
||||||
|
- sh: >- |
||||||
|
|
||||||
|
sudo apt-get update -qq; |
||||||
|
|
||||||
|
sudo apt-get install -qq -y libxml2-dev libappindicator1 rpm; |
||||||
|
|
||||||
npm prune |
|
||||||
cache: |
cache: |
||||||
- '%APPDATA%\npm-cache' |
- '%APPDATA%\npm-cache' |
||||||
- '%USERPROFILE%\.electron' |
- '%USERPROFILE%\.electron' |
||||||
- node_modules |
- node_modules |
||||||
|
before_build: |
||||||
|
- ps: >- |
||||||
|
${env:CURRENT_BRANCH} = If (${env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH}) { |
||||||
|
${env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH} |
||||||
|
} Else { |
||||||
|
${env:APPVEYOR_REPO_BRANCH} |
||||||
|
} |
||||||
|
|
||||||
build_script: |
build_script: |
||||||
- cmd: >- |
- ps: >- |
||||||
node --version |
node --version |
||||||
|
|
||||||
npm --version |
npm --version |
||||||
|
|
||||||
npm run setup:win64 |
If ($isWindows) { |
||||||
|
npm run setup:win64 |
||||||
|
} ElseIf ($isLinux) { |
||||||
|
npm run setup:linux |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test: off |
test: off |
||||||
artifacts: |
artifacts: |
||||||
- path: dist\squirrel-windows\*.exe |
- path: dist\squirrel-windows\*.exe |
||||||
- path: dist\squirrel-windows\*.nupkg |
- path: dist/*.AppImage |
||||||
- path: dist\squirrel-windows\RELEASES |
- path: dist/*.rpm |
||||||
- path: dist\*.zip |
- path: dist/*.deb |
||||||
deploy: |
- path: dist/*.tar.gz |
||||||
- provider: GitHub |
|
||||||
tag: $(appveyor_build_version) |
# after_build: |
||||||
release: $(appveyor_build_version) |
# - ps: >- |
||||||
on: |
# git config --global user.email "travis@travis-ci.org" |
||||||
appveyor_repo_tag: true |
|
||||||
auth_token: |
# git config --global user.name "Travis" |
||||||
secure: G9kcUc6R6xSYIP/mhFWZkuub5EE4b0ws9l3IQtFBz52yTsONp6GiQlFdtsnZWYjW |
|
||||||
draft: true |
# If (${env:CURRENT_BRANCH} -eq "testing") { |
||||||
prerelease: false |
# ${env:APPVEYOR_REPO_TAG_NAME}="snapshot-testing" |
||||||
|
# ${env:APPVEYOR_REPO_TAG}="true" |
||||||
|
# ${env:SNAPSHOT}="true" |
||||||
|
# git tag -f ${env:APPVEYOR_REPO_TAG_NAME} -a -m "Automatic snapshot for testing [skip ci]" |
||||||
|
# (git push -q https://${env:TAGPERM}@github.com/TheGoddessInari/rambox --tags -f 2>&1) | Out-Null |
||||||
|
# } ElseIf (${env:CURRENT_BRANCH} -eq "master") { |
||||||
|
# ${env:APPVEYOR_REPO_TAG_NAME}="snapshot-master" |
||||||
|
# ${env:APPVEYOR_REPO_TAG}="true" |
||||||
|
# ${env:SNAPSHOT}="true" |
||||||
|
# git tag -f ${env:APPVEYOR_REPO_TAG_NAME} -a -m "Automatic snapshot for master [skip ci]" |
||||||
|
# (git push -q https://${env:TAGPERM}@github.com/TheGoddessInari/rambox --tags -f 2>&1) | Out-Null |
||||||
|
# } Else { |
||||||
|
# ${env:SNAPSHOT}="false" |
||||||
|
# } |
||||||
|
|
||||||
|
# deploy: |
||||||
|
# - provider: GitHub |
||||||
|
# on: |
||||||
|
# appveyor_repo_tag: true |
||||||
|
# snapshot: false |
||||||
|
# auth_token: |
||||||
|
# secure: G9kcUc6R6xSYIP/mhFWZkuub5EE4b0ws9l3IQtFBz52yTsONp6GiQlFdtsnZWYjW |
||||||
|
# draft: true |
||||||
|
# prerelease: false |
||||||
|
# force_update: false |
||||||
|
# tag: $(APPVEYOR_REPO_TAG_NAME) |
||||||
|
# release: $(APPVEYOR_REPO_TAG_NAME) |
||||||
|
# - provider: GitHub |
||||||
|
# on: |
||||||
|
# appveyor_repo_tag: true |
||||||
|
# snapshot: true |
||||||
|
# auth_token: |
||||||
|
# secure: G9kcUc6R6xSYIP/mhFWZkuub5EE4b0ws9l3IQtFBz52yTsONp6GiQlFdtsnZWYjW |
||||||
|
# draft: false |
||||||
|
# prerelease: true |
||||||
|
# force_update: true |
||||||
|
# tag: $(APPVEYOR_REPO_TAG_NAME) |
||||||
|
# release: $(APPVEYOR_REPO_TAG_NAME) |
||||||
|
Loading…
Reference in new issue