forked from commoncriteria/transforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (31 loc) · 1014 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
31
32
33
34
35
language: generic
sudo: true
dist: trusty
# whitelist of branches to build
branches:
only:
- master
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq make xsltproc
script:
- cd schemas && make && cd -
- git clone https://github.com/commoncriteria/commoncriteria.github.io.git
- git clone https://github.com/commoncriteria/ci-scripts.git
- mkdir -p commoncriteria.github.io/pp/$(basename $TRAVIS_REPO_SLUG)
- cp schemas/*.html commoncriteria.github.io/pp/$(basename $TRAVIS_REPO_SLUG)
- cd commoncriteria.github.io
- git add --all
- git diff-index --quiet HEAD || git commit -m "Deploying changes"
- git pull --rebase
- cd -
# Deploy HTML pages and updated index.html (needed before we can generate pdf versions)
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: commoncriteria.github.io/
repo: commoncriteria/commoncriteria.github.io
target_branch: master
on:
branch: master