forked from NetAppDocs/trident
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.69 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
47
os: linux
dist: xenial
language: ruby
rvm:
- 2.4.3
env:
global:
- FRAMEWORK_BRANCH=main
- DEPLOY_VERSION=v2
jobs:
include:
- stage: deploy
if: branch = main OR repo =~ /-internal/
before_install:
- echo -e "machine github.com\n login $GH_TOKEN" > ~/.netrc && chmod 600 ~/.netrc
- git submodule add -b $FRAMEWORK_BRANCH https://github.com/NetAppDocs/jekyll dependencies/jekyll
- source dependencies/jekyll/.ci/env/configure_travis.bash
- source dependencies/jekyll/.ci/deploy/before_install.bash
- sudo apt-get -y install graphicsmagick graphicsmagick-libmagick-dev-compat libmagickwand-dev ghostscript
install:
- source .ci/deploy/install.bash
script:
- source .ci/deploy/post_install.bash
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
keep_history: false
local_dir: /tmp/output
target_branch: $DEPLOY_BRANCH
verbose: true
on:
all_branches: true
- stage: i18n
if: branch = main AND NOT repo =~ /-internal/
before_install:
- echo -e "machine github.com\n login $GH_TOKEN" >> ~/.netrc && chmod 600 ~/.netrc
- git submodule add -b $FRAMEWORK_BRANCH https://github.com/NetAppDocs/jekyll dependencies/jekyll
- git submodule add https://github.com/NetAppDocs/jekyll-harmony dependencies/jekyll-harmony
- source dependencies/jekyll/.ci/env/configure_travis.bash
- source dependencies/jekyll/.ci/i18n/before_install.bash
- cp -r dependencies/jekyll/.ci/ .ci/
- rm -Rf dependencies/jekyll/
install:
- source .ci/i18n/install.bash
script:
- source .ci/i18n/post_install.bash