facebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskype
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.
127 lines
5.5 KiB
127 lines
5.5 KiB
9 years ago
|
sudo: required
|
||
9 years ago
|
language: node_js
|
||
7 years ago
|
dist: trusty
|
||
9 years ago
|
node_js:
|
||
8 years ago
|
- "8"
|
||
9 years ago
|
|
||
9 years ago
|
branches:
|
||
|
only:
|
||
8 years ago
|
- master
|
||
7 years ago
|
- testing
|
||
|
except:
|
||
|
- snapshot-master
|
||
|
- snapshot-testing
|
||
9 years ago
|
|
||
9 years ago
|
os:
|
||
7 years ago
|
- osx
|
||
9 years ago
|
|
||
|
cache:
|
||
|
directories:
|
||
9 years ago
|
- node_modules
|
||
9 years ago
|
- $HOME/.electron
|
||
9 years ago
|
|
||
7 years ago
|
env:
|
||
7 years ago
|
global:
|
||
|
- SENCHA_VER=6.6.0.13
|
||
|
- secure: "sEoA+xvrsfYuxGOlrcdHudu0nYjlV47wwyMMgurSi+Em4izYgXoe5JLYDZ5nniO2iDAmD1IqjwbxhBrbRyue2b0gyyuz4PbPfsR5sSbegZ3xum8nzn7Jg5NydllLQbJmPKSsOGOhiOYdprUvMsbmvTWVOwSAs6fH/PorJlqegODpsa8GeuNTXPsI5pT2j98F+DJaF+wAKdkhpgpX3ggdCCdY4pb7SdLk+2Q51IPZhgEPG1AXv2kfXFXHQIwZp76+5hva0aKZEjXipgkPeOr/tLgsIdrSCHAPigxcZyb8SvJzNMIniHfNmdzWr8q2tJuh2W9zCuYhghJQ4pkGUc3OFR0xaLU9aP17u9P/7AB+Zv/PaO5ta5Ay49/2K38hrfAjgBioUCrICH4jXTZenmg8X6q5ksx6R3wBMLP0qv1wyvGEakzIhqBjTwBnZyGE7aLpyGyi4qP0TcBQ7APVaAa1HYsd8uz4GTm67SCqEELzGJlt14dkep9FLIPBFVMo1kzHK45ltLPSawUsJ4Z5Ds8nAdJi1ZEik2IWh6++XVn65fGe0qOdZ1T0AvOgln7RVv4WtznEBcjK0vwP68++XQditB6oGRnMitnVyudQfoSI6j5q0KPrTDRENRN+yh0ofqO/YhkNu1BxCzLLoHQ4Rb5DdX8kALNWupqbCnw1Ce4KJw0="
|
||
7 years ago
|
|
||
9 years ago
|
addons:
|
||
|
apt:
|
||
9 years ago
|
sources:
|
||
|
- ubuntu-toolchain-r-test
|
||
9 years ago
|
packages:
|
||
9 years ago
|
- g++-4.8
|
||
7 years ago
|
- rpm
|
||
9 years ago
|
|
||
9 years ago
|
install:
|
||
9 years ago
|
- git config --global core.autocrlf input
|
||
|
- git reset --hard HEAD
|
||
|
- npm install
|
||
|
- npm uninstall electron-prebuilt
|
||
7 years ago
|
- npm i electron@${ELECTRON}
|
||
7 years ago
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
||
7 years ago
|
curl -o SenchaCmd-${SENCHA_VER}-linux-amd64.sh.zip http://cdn.sencha.com/cmd/${SENCHA_VER}/no-jre/SenchaCmd-${SENCHA_VER}-linux-amd64.sh.zip;
|
||
|
unzip SenchaCmd-${SENCHA_VER}-linux-amd64.sh.zip;
|
||
|
chmod +x SenchaCmd-${SENCHA_VER}-linux-amd64.sh;
|
||
|
./SenchaCmd-${SENCHA_VER}-linux-amd64.sh -q -Dall=true;
|
||
7 years ago
|
else
|
||
7 years ago
|
curl -o SenchaCmd-${SENCHA_VER}-osx-no_jre.app.zip http://cdn.sencha.com/cmd/${SENCHA_VER}/no-jre/SenchaCmd-${SENCHA_VER}-osx-no_jre.app.zip;
|
||
|
unzip SenchaCmd-${SENCHA_VER}-osx-no_jre.app.zip;
|
||
|
SenchaCmd-${SENCHA_VER}-osx-no_jre.app/Contents/MacOS/JavaApplicationStub -q -Dall=true;
|
||
7 years ago
|
fi
|
||
|
- cp env-sample.js env.js
|
||
|
before_script:
|
||
|
- export PATH=~/bin/Sencha/Cmd/${SENCHA_VER}:${PATH}
|
||
7 years ago
|
- export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
|
||
7 years ago
|
|
||
9 years ago
|
script:
|
||
7 years ago
|
- echo ${TRAVIS_OS_NAME}
|
||
9 years ago
|
- node --version
|
||
|
- npm --version
|
||
7 years ago
|
- sencha audit
|
||
7 years ago
|
- npm run setup:${TRAVIS_OS_NAME}
|
||
|
|
||
|
after_success:
|
||
|
- git config --global user.email "[email protected]"
|
||
|
- git config --global user.name "Travis"
|
||
|
- if [ ${CURRENT_BRANCH} == "testing" ]; then
|
||
|
export TRAVIS_TAG="snapshot-testing";
|
||
|
git tag -f ${TRAVIS_TAG} -a -m "Automatic snapshot for testing [skip ci]";
|
||
|
(git push -q https://${TAGPERM}@github.com/TheGoddessInari/rambox --tags -f) > /dev/null 2>&1;
|
||
|
elif [ ${CURRENT_BRANCH} == "master" ]; then
|
||
|
export TRAVIS_TAG="snapshot-master";
|
||
|
git tag -f ${TRAVIS_TAG} -a -m "Automatic snapshot for master [skip ci]";
|
||
|
(git push -q https://${TAGPERM}@github.com/TheGoddessInari/rambox --tags -f) > /dev/null 2>&1;
|
||
|
fi
|
||
|
|
||
|
# deploy:
|
||
|
# - provider: releases # Snapshot tags
|
||
|
# on:
|
||
|
# repo: TheGoddessInari/rambox
|
||
|
# all_branches: true
|
||
|
# condition: ${TRAVIS_TAG} == snapshot-master || ${TRAVIS_TAG} == snapshot-testing
|
||
|
# api_key:
|
||
|
# secure: bYto8VS+zEFqKRjgBga69DgbjVPtHi4vRM+EGsNURe1b4ILRlwS8lJb5RbM+8w2UEPr8P9l959dC1pKYKjlJqEHwvDdTLFsDESO5uEUOtoEWUOnsNEwvvoNY1tFfPoFr1qhWjPWh4UGZzf/sfgXvSdoEg8cbmgbjkbEgGpKPri6Gigvosu/HT1ZCXVoud32uJ2ydfoWMfERXeQYk8u9x52Qx3XS7OMmUR1BvqifaSMt6K5oPFS1lOAXkxyCu1Sczg119+6MEWixImFcXYmPaAoHqLfPNICnhG3egiddq24f1ZGsGmfHgpliM4MNl74t99kPX6lcoQchTlhz4lVVI0lpHBymZwhIf4JjLSuZt81zW5cvJmu0CT22o/thnRFTY1MkaBDmdweaPtdYiMmAJuhwSQEeP6Mt4lqQNgtsNsBqkT6+n4T2l5RHagc/iC4TC58/4QZErKcVkaZnjy78trrQCKD9E1wLpm5hV84fF0FJLrEIhNYcSAJ6u1OJa2CaJ3u5OXFIuu01E+6CWu64pXgpIjkCRQU/JPSQVxdmwWqx4o4948NddBEx7Z3EsPkKU+5ccQr6dz7qESa8xnuERILclWO/LvdauYLhxtMVD2/fc/aKeP+6QxvNBClZT/eeO7bJDdCx/uWzm3Qo4k5+nyTl9bPUKLDzb5MuMh2x7flc=
|
||
|
# file_glob: true
|
||
|
# file:
|
||
|
# - "dist/*.deb"
|
||
|
# - "dist/*.tar.gz"
|
||
|
# - "dist/*.AppImage"
|
||
|
# - "dist/*.rpm"
|
||
|
# - "dist/*.zip"
|
||
|
# - "dist/*.dmg"
|
||
|
# skip_cleanup: true
|
||
|
# overwrite: true
|
||
|
# draft: false
|
||
|
# prerelease: true
|
||
|
# tag_name: $TRAVIS_TAG
|
||
|
# - provider: releases # Regular tags
|
||
|
# on:
|
||
|
# repo: TheGoddessInari/rambox
|
||
|
# all_branches: true
|
||
|
# condition: x${TRAVIS_TAG} != "x" && ${TRAVIS_TAG} != snapshot-master && ${TRAVIS_TAG} != snapshot-testing
|
||
|
# api_key:
|
||
|
# secure: bYto8VS+zEFqKRjgBga69DgbjVPtHi4vRM+EGsNURe1b4ILRlwS8lJb5RbM+8w2UEPr8P9l959dC1pKYKjlJqEHwvDdTLFsDESO5uEUOtoEWUOnsNEwvvoNY1tFfPoFr1qhWjPWh4UGZzf/sfgXvSdoEg8cbmgbjkbEgGpKPri6Gigvosu/HT1ZCXVoud32uJ2ydfoWMfERXeQYk8u9x52Qx3XS7OMmUR1BvqifaSMt6K5oPFS1lOAXkxyCu1Sczg119+6MEWixImFcXYmPaAoHqLfPNICnhG3egiddq24f1ZGsGmfHgpliM4MNl74t99kPX6lcoQchTlhz4lVVI0lpHBymZwhIf4JjLSuZt81zW5cvJmu0CT22o/thnRFTY1MkaBDmdweaPtdYiMmAJuhwSQEeP6Mt4lqQNgtsNsBqkT6+n4T2l5RHagc/iC4TC58/4QZErKcVkaZnjy78trrQCKD9E1wLpm5hV84fF0FJLrEIhNYcSAJ6u1OJa2CaJ3u5OXFIuu01E+6CWu64pXgpIjkCRQU/JPSQVxdmwWqx4o4948NddBEx7Z3EsPkKU+5ccQr6dz7qESa8xnuERILclWO/LvdauYLhxtMVD2/fc/aKeP+6QxvNBClZT/eeO7bJDdCx/uWzm3Qo4k5+nyTl9bPUKLDzb5MuMh2x7flc=
|
||
|
# file_glob: true
|
||
|
# file:
|
||
|
# - "dist/*.deb"
|
||
|
# - "dist/*.tar.gz"
|
||
|
# - "dist/*.AppImage"
|
||
|
# - "dist/*.rpm"
|
||
|
# - "dist/*.zip"
|
||
|
# - "dist/*.dmg"
|
||
|
# skip_cleanup: true
|
||
|
# overwrite: false
|
||
|
# draft: true
|
||
|
# prerelease: false
|
||
|
# tag_name: $TRAVIS_TAG
|
||
9 years ago
|
|
||
|
|
||
9 years ago
|
notifications:
|
||
|
webhooks:
|
||
|
urls:
|
||
7 years ago
|
- https://webhooks.gitter.im/e/a6584eccd211f35ecab6
|
||
9 years ago
|
on_success: always # options: [always|never|change] default: always
|
||
9 years ago
|
on_failure: always # options: [always|never|change] default: always
|
||
|
on_start: never # options: [always|never|change] default: always
|