docker_practice/.travis.yml

32 lines
882 B
YAML
Raw Normal View History

2017-09-04 04:47:22 +00:00
language: node_js
node_js: stable
cache:
directories:
- "node_modules"
before_install:
- openssl aes-256-cbc -K $encrypted_4514352cb17e_key -iv $encrypted_4514352cb17e_iv
-in .travis/khs1994-robot.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- git config --global user.name "khs1994-merge-robot"
- git config --global user.email "ai@khs1994.com"
- echo "TZ='Asia/Shanghai'; export TZ" >> ~/.profile
- . ~/.profile
install:
- git ls-files | while read file; do touch -d $(git log -1 --format="@%ct" "$file") "$file"; done
2017-09-04 05:18:58 +00:00
#- npm install gitbook -g
2017-09-04 05:25:27 +00:00
#- npm install gitbook-cli
2017-09-04 04:47:22 +00:00
script:
2017-09-04 05:29:26 +00:00
#- node_modules/gitbook-cli/bin/gitbook.js install
2017-09-04 05:31:21 +00:00
- node_modules/gitbook-cli/bin/gitbook.js build
2017-09-04 04:47:22 +00:00
after_success:
- sh .travis/deploy.sh
branches:
only:
- master
env:
global:
- REPO: git@github.com:khs1994-gitbook/docker_practice.git
addons:
ssh_known_hosts:
- github.com