-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
62 lines (52 loc) · 2.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
osx_image: xcode8.3
env:
global:
# This will be part of the release tarball
- PROJECT_NAME="safedrive-mac-app"
- CONFIGURATION="Release"
- DEVELOPER_ID_CERTIFICATE_P12="build/developer-id.p12"
- MAC_DEVELOPER_CERTIFICATE_P12="build/mac-developer.p12"
matrix:
include:
- os: osx
env: TARGET=x86_64-apple-darwin
cache:
directories:
- safedrive-sdk
- $HOME/.cargo
before_install:
- mkdir -p build
- openssl aes-256-cbc -K $encrypted_93e018832669_key -iv $encrypted_93e018832669_iv -in mac-developer.p12.enc -out ${MAC_DEVELOPER_CERTIFICATE_P12} -d
- openssl aes-256-cbc -K $encrypted_93e018832669_key -iv $encrypted_93e018832669_iv -in developer-id.p12.enc -out ${DEVELOPER_ID_CERTIFICATE_P12} -d
- export PATH="$PATH:$HOME/.cargo/bin"
- export KEYCHAIN=build.keychain;
- security create-keychain -p safedrive ${KEYCHAIN}
- security default-keychain -s ${KEYCHAIN}
- security unlock-keychain -p safedrive ${KEYCHAIN}
- security import ${MAC_DEVELOPER_CERTIFICATE_P12} -k ${KEYCHAIN} -P "" -T /usr/bin/codesign
- security import ${DEVELOPER_ID_CERTIFICATE_P12} -k ${KEYCHAIN} -P "" -T /usr/bin/codesign
install:
- bash safedrive-sdk/ci/install.sh
script:
- travis_wait 60 bash build.sh
deploy:
provider: releases
api_key:
secure: uBQS6bf7gVRgC1RxsiRc8KraU5DhKar4JQkErrDc1K70XJm2FY8pfEXIj/kDbzbYmJ/PR5a+jNT3iW9WzBJx5azf1RvB82gHqVcTjsoH9o7udWlY2sMp7xnxKMumeWN+0bur75kVlWqm5C9jo8i26NjOKFRA1Dn3PTDHHqLlVPI32sTNOC7Q3aGEHss6QXvIAfBrjgwA3YRA2A8omrgJ2KUXstN6XRzV4g3U2BNg0Lb+X0MeunLORzY9Rj9gxqCeZART9XGGyt4JDfNKumhsV5BWJs5mhPFLF8XklaiqTFiIaNiQuVocyGWxdPVUQ7EECzzGw2MsBLBrWbAd6GVnuYyQMkJ/feBAd8cEbc4/itNcD1vwdGTgnOUT7Ii60nDOifKOX8WyrKAqsD2OuSvljylzzH7slUrwPIwhGOZLoqlYSHzZj4qXYwKBnq0SlXy0PLH9ruEYsz7yd/f6hOdHjtoSEQz+fJ/WiwRGLGOJ5kM+QsqZpJvOEKumWbkVgi+llXPSKHMlSuKgVHjXb/W641imT9uKL5igJceRIYRVPthpzj1FMuw/GqI/oCXj5fbIBHlXg5VmsJoSH62tIah94jjbz3f8IZNdECSY12UinCFO5uJ/olBN3HsZP8ZdR0P1g9BxE7m5PzvnmDpI1nif3/qdv250OjBJ7XnyIZGNZoQ=
file_glob: true
file: update/SafeDrive_*.zip
# don't delete the artifacts from previous phases
skip_cleanup: true
# deploy when a new tag is pushed
on:
tags: true
branches:
only:
# Pushes and PR to the master branch
- master
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
- /^v\d+\.\d+\.\d+.*$/
notifications:
email:
on_success: never