Skip to content

Commit b88c8cd

Browse files
committed
build with travis and doctr
1 parent 1e04247 commit b88c8cd

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: minimal
2+
3+
sudo: false
4+
5+
env:
6+
global:
7+
- secure:
8+
9+
before_install:
10+
# Install miniconda and create TEST env.
11+
- |
12+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
13+
bash miniconda.sh -b -p $HOME/miniconda
14+
export PATH="$HOME/miniconda/bin:$PATH"
15+
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
16+
conda update --quiet conda
17+
conda config --add channels conda-forge --force
18+
conda config --set channel_priority strict
19+
conda config --set safety_checks disabled
20+
conda create --name TEST python=3 rb-bundler compilers doctr
21+
source activate TEST
22+
bundle install
23+
24+
install:
25+
- bundle exec jekyll build
26+
27+
script:
28+
- |
29+
set -e
30+
if [[ -z "$TRAVIS_TAG" ]]; then
31+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs _site/ dev
32+
else
33+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs _site/ "version-$TRAVIS_TAG"
34+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs _site/ .
35+
fi
36+
37+
doctr:
38+
require-master: true
39+
sync: false

0 commit comments

Comments
 (0)