-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
51 lines (43 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
dist: xenial
language: python
python:
- "3.6"
env:
global:
- NODE_VERSION="10"
# Required by code-example-generator tool.
# Accepted values are http and https
- SCHEME=https
# Output folder for code examples
- CODE_EXAMPLES=$TRAVIS_BUILD_DIR/code-examples
# - host for API testing
# - authorization token to use (must be defined in secret env vars in travis-ci)
# should be used as "Bearer ${AUTH_TOKEN}"
- HOST=api-sandbox.oftrust.net AUTH_TOKEN=$TESTING_ACCESS_TOKEN
# Specify location for code-examples-validator configuration.
# https://github.com/PlatformOfTrust/code-examples-validator#configuration
- VALIDATOR_CONF=$TRAVIS_BUILD_DIR/scripts/code-examples/validator_conf.yml
git:
submodules: false
services:
- mongodb
before_install:
- nvm install $NODE_VERSION
- nvm alias default node
script:
# Generate code examples from RAML files.
- chmod +x scripts/generate-docs.sh
- ./scripts/generate-docs.sh
# Build API documentation
- echo 'docs.oftrust.net' > build/CNAME
- cp -R keys ./build/
# Deploy to GitHub pages.
deploy:
provider: pages
skip-cleanup: true
local-dir: build
github-token: $GITHUB_TOKEN
target-branch: gh-pages
repo: PlatformOfTrust/docs
on:
branch: master