2019-10-18 14:48:39 +00:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2020-04-26 21:58:07 +00:00
|
|
|
- name: Release Core
|
|
|
|
os: osx # High Sierra for older libcurl compatibility
|
2019-10-18 15:08:59 +00:00
|
|
|
osx_image: xcode10.1
|
2020-04-26 21:29:51 +00:00
|
|
|
if: (tag =~ ^core@)
|
2019-10-18 14:48:39 +00:00
|
|
|
env:
|
2020-04-26 21:49:50 +00:00
|
|
|
- GH_TOKEN=$GITHUB_TOKEN
|
2020-04-26 21:29:51 +00:00
|
|
|
- APPLE_ID=$APPLE_ID
|
|
|
|
- APPLE_ID_PASSWORD=$APPLE_ID_PASSWORD
|
2019-10-18 14:48:39 +00:00
|
|
|
- CSC_LINK=$MAC_CSC_LINK
|
|
|
|
- CSC_KEY_PASSWORD=$MAC_CSC_KEY_PASSWORD
|
2020-04-26 21:58:07 +00:00
|
|
|
- name: Release Designer
|
|
|
|
os: osx # High Sierra for older libcurl compatibility
|
2020-04-26 21:29:51 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
if: (tag =~ ^designer@)
|
|
|
|
env:
|
2020-04-26 21:49:50 +00:00
|
|
|
- GH_TOKEN=$GITHUB_TOKEN
|
2020-04-26 21:29:51 +00:00
|
|
|
- APPLE_ID=$DESIGNER_APPLE_ID
|
|
|
|
- APPLE_ID_PASSWORD=$DESIGNER_APPLE_ID_PASSWORD
|
|
|
|
- CSC_LINK=$DESIGNER_MAC_CSC_LINK
|
|
|
|
- CSC_KEY_PASSWORD=$DESIGNER_MAC_CSC_KEY_PASSWORD
|
2019-10-18 14:48:39 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2020-04-26 21:29:51 +00:00
|
|
|
- packages/insomnia-app/node_modules
|
|
|
|
- packages/insomnia-app/build/node_modules
|
2019-10-18 14:48:39 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- npm run bootstrap
|
|
|
|
- npm test
|
2020-04-26 20:33:39 +00:00
|
|
|
# Setup branch because Travis doesn't provide a good way to get it
|
|
|
|
- export TRAVIS_CURRENT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
|
2019-10-30 14:24:32 +00:00
|
|
|
- npm run app-release
|