forked from LCTT/LFS-BOOK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
18 lines (18 loc) · 781 Bytes
/
.travis.yml
File metadata and controls
18 lines (18 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo: required
services: docker
before_install:
- docker pull lctt/lfs-book-build
- mkdir -p $TRAVIS_BUILD_DIR/tmp/output/{lfs-systemd,lfs-sysv}
- sudo chown -R 1000:1000 "$TRAVIS_BUILD_DIR"
script:
- docker run --rm -it -v "$TRAVIS_BUILD_DIR:/home/build/repo" -v "$TRAVIS_BUILD_DIR/tmp/output/lfs-systemd:/home/build/lfs-systemd" lctt/lfs-book-build
- docker run --rm -it -v "$TRAVIS_BUILD_DIR:/home/build/repo" -v "$TRAVIS_BUILD_DIR/tmp/output/lfs-sysv:/home/build/lfs-book" lctt/lfs-book-build make book nochunks pdf V=1
- sudo rsync -a "$TRAVIS_BUILD_DIR/gh-pages/" "$TRAVIS_BUILD_DIR/tmp/output"
- sudo chown -R travis:travis "$TRAVIS_BUILD_DIR"
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: tmp/output
on:
all_branches: true