-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 1.12 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
sudo: true
dist: trusty
cache: false
env:
- URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
before_install:
- openssl aes-256-cbc -K $encrypted_bc92a2cfef85_key -iv $encrypted_bc92a2cfef85_iv
-in assets/server.key.enc -out assets/server.key -d
- export SFDX_AUTOUPDATE_DISABLE=true
- export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
- export SFDX_DOMAIN_RETRY=300
- wget -qO- $URL | tar xJf -
- "./sfdx/install"
- export PATH=./sfdx/$(pwd):$PATH
- sfdx update
- sfdx --version
- sfdx plugins --core
- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/server.key
--username $USERNAME --setdefaultdevhubusername -a salesforce-ci-test
script:
- sfdx force:org:create -v salesforce-ci-test -s -f config/project-scratch-def.json -a ciorg
- sfdx force:source:push -u ciorg
# TODO: Add the --wait parameter to test:run and delete the apiVersion line when v42 releases
# v41 is specified so that builds will not suddenly start breaking when v42 releases
- sfdx force:config:set apiVersion=41.0
- sfdx force:apex:test:run -u ciorg -c -r human --testlevel RunLocalTests
- sfdx force:org:delete -u ciorg -p