Skip to content

Commit 7fd35e8

Browse files
committed
Builds docs in CI
1 parent fea33e3 commit 7fd35e8

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ before_script:
99
- cd redis
1010
- make
1111
- cd ..
12-
- pip install redis rmtest ramp-packer
12+
- pip install redis rmtest ramp-packer mkdocs mkdocs-material
1313

1414
env:
1515
- REDIS_MODULE_PATH=$TRAVIS_BUILD_DIR/src/rejson.so REDIS_PATH=$TRAVIS_BUILD_DIR/redis/src/redis-server
1616

1717
script:
1818
- make test
1919
- make package
20+
- make docs
2021

2122
deploy:
2223
- provider: s3
@@ -36,5 +37,5 @@ deploy:
3637
acl: public_read
3738
bucket: rejson.io
3839
on:
39-
branch: gh-pages
40-
local_dir: $TRAVIS_BUILD_DIR/
40+
branch: master
41+
local_dir: $TRAVIS_BUILD_DIR/site

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ docker:
1010
docker pull ubuntu:xenial
1111
docker build . -t rejson:latest
1212

13+
.PHONY: docker
14+
1315
package:
1416
$(MAKE) -C ./src package
1517

18+
docs:
19+
mkdocs build
20+
21+
.PHONY: docs
22+
1623
clean:
1724
find ./ -name "*.[oa]" -exec rm {} \; -print
1825
find ./ -name "*.so" -exec rm {} \; -print

0 commit comments

Comments
 (0)