-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 908 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
sudo: true
os: 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_9fa77734439a_key -iv $encrypted_9fa77734439a_iv
-in assets/server.key.enc -out assets/server.key -d
- export SFDX_AUTOUPDATE_DISABLE=false
- export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
- export SFDX_DOMAIN_RETRY=300
- export SFDX_DISABLE_APP_HUB=true
- export SFDX_LOG_LEVEL=DEBUG
- export SFDX_AUDIENCE_URL=https://cs999.salesforce.com
- mkdir sfdx
- wget -qO- $URL | tar xJ -C sfdx --strip-components 1
- "./sfdx/install"
- export PATH=./sfdx/$(pwd):$PATH
- sfdx --version
- sfdx plugins --core
- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY -r https://cs999.salesforce.com --jwtkeyfile assets/server.key
--username $USERNAME -s -a sbx
script:
- sfdx force:source:deploy -u sbx
- sfdx force:apex:test:run -u sbx --wait 10