Created
August 6, 2018 04:33
-
-
Save pietrop/a2622337a26086878e3b8a4f6c8b8949 to your computer and use it in GitHub Desktop.
Electron Travis CI Mac + Linux automated build `.travis.yml` file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/OpenNewsLabs/autoEdit_2/issues/36 | |
language: node_js | |
node_js: | |
- "7" | |
os: | |
- linux | |
- osx | |
dist: trusty | |
osx_image: xcode9.4 | |
sudo: required | |
env: | |
global: | |
- TRAVIS_TAG="1.0.12" | |
- UPLOADTOOL_SUFFIX="autoEdit2" | |
addons: | |
apt: | |
packages: | |
- libgnome-keyring-dev | |
- icnsutils | |
install: | |
- node --version | |
- npm --version | |
- npm install | |
script: | |
- | | |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
echo "INSIDE Travis OS Linux script"; | |
npm run build:linux; | |
find . | grep AppImage; | |
# - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
bash upload.sh ./dist/autoEdit2-*-x86_64.AppImage; | |
fi | |
- | | |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
npm run build:mac; | |
ls ./dist; | |
find . | grep mac.zip; | |
#wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
bash upload.sh ./dist/autoEdit2-*-mac.zip; | |
fi | |
branches: | |
except: | |
- # Do not build tags that we create when we upload to GitHub Releases | |
- /^(?i:continuous)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment