telegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchat
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
4.0 KiB
138 lines
4.0 KiB
7 years ago
|
version: 0.5.18-{build}
|
||
7 years ago
|
image:
|
||
|
- Visual Studio 2017
|
||
|
- Ubuntu
|
||
7 years ago
|
environment:
|
||
7 years ago
|
nodejs_version: '10'
|
||
7 years ago
|
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
|
||
9 years ago
|
pull_requests:
|
||
|
do_not_increment_build_number: true
|
||
|
branches:
|
||
|
only:
|
||
|
- master
|
||
7 years ago
|
- testing
|
||
|
except:
|
||
|
- snapshot-master
|
||
|
- snapshot-testing
|
||
7 years ago
|
|
||
9 years ago
|
init:
|
||
7 years ago
|
- ps: git config --global core.autocrlf input
|
||
9 years ago
|
install:
|
||
7 years ago
|
- ps: >-
|
||
7 years ago
|
|
||
7 years ago
|
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
|
||
|
}
|
||
7 years ago
|
|
||
7 years ago
|
Expand-Archive -Path .\Sencha.zip -DestinationPath .\SenchaCmd
|
||
7 years ago
|
|
||
7 years ago
|
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}"
|
||
|
}
|
||
7 years ago
|
|
||
7 years ago
|
git reset --hard HEAD
|
||
7 years ago
|
|
||
7 years ago
|
npm i npm@latest -g
|
||
7 years ago
|
|
||
7 years ago
|
npm install
|
||
|
|
||
|
- sh: >-
|
||
|
|
||
|
sudo apt-get update -qq;
|
||
|
|
||
|
sudo apt-get install -qq -y libxml2-dev libappindicator1 rpm;
|
||
7 years ago
|
|
||
9 years ago
|
cache:
|
||
7 years ago
|
- '%APPDATA%\npm-cache'
|
||
|
- '%USERPROFILE%\.electron'
|
||
7 years ago
|
- node_modules -> package-lock.json
|
||
7 years ago
|
|
||
7 years ago
|
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}
|
||
|
}
|
||
|
|
||
9 years ago
|
build_script:
|
||
7 years ago
|
- ps: >-
|
||
|
node --version
|
||
|
|
||
|
npm --version
|
||
|
|
||
|
If ($isWindows) {
|
||
7 years ago
|
npm run setup:win64
|
||
7 years ago
|
} ElseIf ($isLinux) {
|
||
7 years ago
|
npm run setup:linux64
|
||
7 years ago
|
}
|
||
|
|
||
|
|
||
|
|
||
9 years ago
|
test: off
|
||
|
artifacts:
|
||
7 years ago
|
- path: dist\*.exe
|
||
7 years ago
|
- path: dist/*.rpm
|
||
|
- path: dist/*.deb
|
||
|
- path: dist/*.tar.gz
|
||
7 years ago
|
- path: dist/*.AppImage
|
||
7 years ago
|
|
||
|
# after_build:
|
||
|
# - ps: >-
|
||
|
# git config --global user.email "[email protected]"
|
||
|
|
||
|
# git config --global user.name "Travis"
|
||
|
|
||
|
# If (${env:CURRENT_BRANCH} -eq "testing") {
|
||
|
# ${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)
|