Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #47 from nylas-mail-lives/travis-fix
Browse files Browse the repository at this point in the history
Disables signing on PRs due to Travis' security policy.
  • Loading branch information
mikeseese authored Aug 23, 2017
2 parents a27675a + c3ca130 commit 90f04c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,24 @@ matrix:
env: NODE_VERSION=6.9 CC=clang CXX=clang++ SIGN_BUILD=true DEBUG="electron-packager:*"
INSTALL_TARGET=client
before_install:
- openssl aes-256-cbc -K $encrypted_1670798fb6bd_key -iv $encrypted_1670798fb6bd_iv
-in ~/build/nylas-mail-lives/nylas-mail/certs/nml.p12.enc -out ~/build/nylas-mail-lives/nylas-mail/certs/nml.p12 -d
- if [ ${TRAVIS_PULL_REQUEST} = "false" ]; then openssl aes-256-cbc -K $encrypted_1670798fb6bd_key -iv $encrypted_1670798fb6bd_iv
-in ~/build/nylas-mail-lives/nylas-mail/certs/nml.p12.enc -out ~/build/nylas-mail-lives/nylas-mail/certs/nml.p12 -d;
fi
install:
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
- source /tmp/.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION
before_script:
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then security delete-keychain nml-build.keychain;
- if [ ${TRAVIS_OS_NAME} = "osx" ] && [ ${TRAVIS_PULL_REQUEST} = "false" ]; then security delete-keychain nml-build.keychain;
security create-keychain -p travis nml-build.keychain; security default-keychain
-s nml-build.keychain; security unlock-keychain -p travis nml-build.keychain; security
import ~/build/nylas-mail-lives/nylas-mail/certs/AppleWWDRCA.cer -k ~/Library/Keychains/nml-build.keychain
-T /usr/bin/codesign; security import ~/build/nylas-mail-lives/nylas-mail/certs/nml.cer -k
~/Library/Keychains/nml-build.keychain -T /usr/bin/codesign; security import ~/build/nylas-mail-lives/nylas-mail/certs/nml.p12
-k ~/Library/Keychains/nml-build.keychain -P $NML_CERTIFICATE_PASSWORD -T /usr/bin/codesign;
else
SIGN_BUILD=false;
fi
script:
- npm install && npm run build-client
Expand Down

0 comments on commit 90f04c0

Please sign in to comment.