-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
36 lines (34 loc) · 1.26 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
dist: trusty
cache:
npm: false
language: node_js
node_js:
- 'v14' # ends April 2021
before_install:
- openssl aes-256-cbc -K $encrypted_5abe573128c6_key -iv $encrypted_5abe573128c6_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
- npm cache clean --force
- npm install sfdx-cli --global
- npm install
- sfdx --version
- sfdx plugins --core
- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/server.key
--username $USERNAME --setdefaultdevhubusername -a HubOrg
script:
- set -e
- sfdx force:org:create -v HubOrg -s -f config/project-scratch-def.json -a ciorg -d 1 --wait 4
- sfdx force:org:display -u ciorg
- sfdx force:source:push -u ciorg
- set +e
- sfdx force:apex:test:run -u ciorg --codecoverage -r human -d ~/apex_tests --wait 10
- npm run test:unit:coverage
- cp ~/apex_tests/test-result-codecoverage.json .
- bash <(curl -s https://codecov.io/bash)
- rm -f test-result-codecoverage.json
- node_modules/codecov/bin/codecov
- sfdx force:org:delete -u ciorg -p