forked from spaceship-prompt/spaceship-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.29 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
sudo: true
language: generic
os:
- linux
- osx
addons:
apt:
packages:
- build-essential
before_install:
# Install OSX dependencies
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install mercurial; fi;
# Install Linux dependencies
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update; fi;
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y mercurial; fi;
# Set LOCAL for correct ZSH compilaction
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then LOCAL=/usr/local; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then LOCAL=/tmp; fi;
# Donwload, install and compile ZSH 5.2
- curl -L https://sourceforge.net/projects/zsh/files/zsh/5.2/zsh-5.2.tar.gz/download | tar zx
- cd zsh-5.2
- ./configure --prefix=$LOCAL > /dev/null
- make
- make install
- cd -
- export PATH="$LOCAL/bin:$PATH"
install:
- sudo chsh -s $(which zsh)
before_script:
- zsh --version
script:
- scripts/tests.sh
jobs:
include:
- stage: deploy gitbook
if: branch = master AND type = push
script:
- npm install --only=dev --ignore-scripts
- npm run docs:build
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
committer-from-gh: true
keep-history: true
local-dir: _book