-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
49 lines (39 loc) · 1.34 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
48
49
dist: trusty
language: node_js
node_js: "node"
addons:
apt:
sources:
- sourceline: deb https://download.mono-project.com/repo/debian stable-trusty main
key_url: https://raw.githubusercontent.com/travis-ci/apt-source-safelist/master/keys/mono.asc
packages:
- mono-complete
cache:
directories:
- website/node_modules
branches:
only:
- src
- /^greenkeeper.*$/
install:
- wget https://artifacts.crowdin.com/repo/deb/crowdin.deb && sudo dpkg -i crowdin.deb
- wget https://github.com/dotnet/docfx/releases/latest/download/docfx.zip && unzip docfx.zip
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- mkdir api/src
- git -C api/src clone https://github.com/NFive/NFive.git
- git -C api/src clone https://github.com/NFive/SDK.Core.git
- git -C api/src clone https://github.com/NFive/SDK.Client.git
- git -C api/src clone https://github.com/NFive/SDK.Server.git
- git -C api/src clone https://github.com/NFive/SDK.Plugins.git
- cd website && npm install
script:
- cd ../api
- mono ../docfx.exe
- cp -r _site ../website/static/api
- cd ../website
- npm run write-translations
- npm run crowdin-upload
- npm run crowdin-download
- GIT_USER="${GH_NAME}" npm run publish-gh-pages