Last active
August 6, 2018 04:32
-
-
Save pietrop/9db844c2d7d6d66ffead4406d3aaa337 to your computer and use it in GitHub Desktop.
Electron Travis CI Mac 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
# originally from https://github.com/OpenNewsLabs/autoEdit_2/issues/36 see PR for setup instructions with travis github token etc.. | |
# https://github.com/OpenNewsLabs/autoEdit_2/blob/master/package.json | |
# need to set electron builder mac target to be only zip file, to skip dmg | |
# https://github.com/OpenNewsLabs/autoEdit_2/blob/master/package.json#L56 | |
# dmg seems to take to long and hang the process | |
language: node_js | |
node_js: | |
- "10" | |
os: osx | |
osx_image: xcode9.4 | |
sudo: required | |
cache: | |
directories: | |
- node_modules | |
- $HOME/.electron | |
- $HOME/.npm | |
- $HOME/.nvm | |
env: | |
global: | |
- TRAVIS_TAG="1.0.12" | |
- UPLOADTOOL_SUFFIX="autoEdit2" | |
install: | |
- node --version | |
- npm --version | |
- npm install | |
script: | |
# - npm run test | |
# - npm run build | |
- npm run build:mac | |
- find . | grep mac.zip | |
- ls ./dist | |
# I moved the upload.sh file to modify it a bit in autoEdit repo | |
# see here https://github.com/OpenNewsLabs/autoEdit_2/blob/master/upload.sh | |
# but you can also download it onto travis ucommenting following line | |
# - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
- bash upload.sh ./dist/autoEdit2-*-mac.zip | |
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