forked from jpmonette/q
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (28 loc) · 1.11 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
sudo: true
os: osx
node_js: '8'
cache: false
before_install:
- 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_IMPROVED_CODE_COVERAGE=true
- npm i -g sfdx-cli
- sfdx update
- sfdx --version
- sfdx plugins --core
- npm install apexcov coveralls -g
- openssl aes-256-cbc -K $encrypted_79a2f6093848_key -iv $encrypted_79a2f6093848_iv -in assets/server.key.enc -out assets/server.key -d
- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/server.key --username $USERNAME --setdefaultdevhubusername -a DevHub
- echo y | sfdx plugins:install @mavens/sfdx-commands
script:
- sfdx force:org:create -v DevHub -s -f scratchdef.json -a ciorg
- sfdx force:org:display -u ciorg
- sfdx force:source:push -u ciorg
- mkdir coverage
- sfdx force:apex:test:run -u ciorg --codecoverage --testlevel=RunLocalTests --resultformat=human --outputdir=coverage
- sfdx mavens:ci:lcov
- sfdx force:org:delete -u ciorg -p
- cat ./coverage/lcov.info | coveralls