-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
47 lines (41 loc) · 1.19 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
sudo: true
os: xenial
env:
global:
- SFDX_ALIAS=jpmonette-q-$TRAVIS_BUILD_NUMBER
jobs:
include:
- stage: "Static code analysis"
name: 🕵🏼♂️ Static code analysis (PMD)
install: bash scripts/ci/installPMD.sh
script: bash scripts/ci/runPMD.sh
- stage: "Salesforce Scratch-Org"
name: 🚀 Creating Scratch-Org
workspaces:
create:
name: sfdx
paths:
- sfdx # for the sfdx install files
- $HOME/.sfdx # for the authenticated orgs
install: bash scripts/ci/installSFDX.sh
script: bash scripts/ci/createOrg.sh
- stage: "Push"
name: "🙇 Pushing Metadata"
workspaces:
use: sfdx
install: bash scripts/ci/installDX.sh
script: bash scripts/ci/push.sh
- stage: "Tests"
name: "🧪 Running Apex Tests"
env: dir=null
workspaces:
use: sfdx
install: bash scripts/ci/installApexTests.sh
script: bash scripts/ci/runApexTests.sh
- stage: "Cleanup"
name: "🧹 Deleting Scratch Org"
env: dir=null
workspaces:
use: sfdx
install: bash scripts/ci/installDX.sh
script: bash scripts/ci/deleteOrg.sh