-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 980 Bytes
/
.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
cache: false
# Call environment variables set on Travis CI:
env:
matrix:
- URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
# Optional: set up webhook to integrate Travis with JIRA
#notifications:
#webhooks: https://travis-for-jira-prod.toolsplus.app/travis/notifications?token=b217de27-5ba1-367e-92cc-495d273e45c7
#on_success: always
#on_failure: always
#on_start: always
#on_cancel: always
#on_error: always
# Deployment stage will incrementally build and deploy for PR and pushes
# Retrieve stage will automatically retrieve SalesForce metadata on a scheduled basis
stages:
- name: deployment
if: type != cron
- name: retrieve
if: type = cron
# Make the stages executable with custom shell scripts
jobs:
include:
- stage: deployment
script: "./deployment.sh"
- stage: retrieve
script: "./retrieve.sh"
# Make the shell scripts executable
before_script:
- chmod +rx deployment.sh
- chmod +rx retrieve.sh