generated from standardhealth/smart-react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (26 loc) · 900 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
26
27
28
29
30
---
language: node_js
node_js:
- "12"
cache: yarn
script:
- yarn lint
- yarn test
- yarn build
# replace the pathways service in the config file with the gh static location
# and the cql-to-elm service with a public one
# -i means in-place
# see https://stackoverflow.com/a/11245501
# note multiline string here gets converted into one line, not 3
- >
sed -i "/pathwaysService:/c\ pathwaysService: 'https://mcode.github.io/pathways/static/pathways/'," build/config.js
&&
sed -i "/cqlToElmWebserviceUrl:/c\ cqlToElmWebserviceUrl: 'https://cql-translation-service.herokuapp.com/cql/translator?annotations=true&result-types=true'," build/config.js
deploy:
provider: pages
local_dir: build
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master