Skip to content

Commit 58d7837

Browse files
committed
merge ok
1 parent fb78436 commit 58d7837

File tree

4 files changed

+48
-20
lines changed

4 files changed

+48
-20
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "features/features"]
22
path = features/features
33
url = https://github.com/kuzzleio/sdk-features.git
4-
[submodule "doc/framework"]
5-
path = doc/framework
6-
url = https://github.com/kuzzleio/documentation

.travis.yml

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,33 @@ jobs:
1212
# Codecov token
1313
secure: ATb4QFGG6sPkfquAoye6BeN7u4uQ4abP8qatVK8XG3Qof+pECZwRkFPVoopO1Gb/4bQSPfapc1aGPzGuKi409v633vpDnpcgM7cHX9CPT+YQYcTePMFtq/m+5YY3WIYWM1zCFmJ+bBwQO/MtsubfGfA9EmSAAxtnJV+1JDD3Y6+NQRkQN7K+gxQozec0u1W0Oe1sJXLSKlW3JPL8iRtKcLvmIDysKtBK6X/Wg1qP2Me4reb449a0yGej3QvZDbDYJbdlh7vuFLjXJAz3yExfED8QAm8wf0p9F8emILHnkLxjumTTnGUUqDJLLu8WgkahFiyFo4jMtryhNQ0+p6WhXmEbpNIO+yMGSZPsCGbnpkhWJ1aMAT6ZhgpHf4jDZQd4ZJi02+n9tOpe+Lm2Jk2LXY8SwMk3xGtqm5sk03weTc019TUGj/NLoHNjO/vfNz3xOImD5Gck3bXWNxdrX3bjiyVsr/u77enoWu9drPCEl3JOTIwVP3mTF8R3axSFOQ8M4SI1orCMChkGMB5qExl+Gfx+MHa/jL7QKO1SFRgl1O3DbhsyFE6xiabYzwLcdbI50ypy6VJjmDd5RxK7BkDa8RumlHT1uY1FK9yRXu4XFrrw9FjF2s+xjWbliRZqXRReXk0W1Hz4zj5au3Y9YH5a/UPtB72TY+AUUWHTUPQl3SU=
1414

15+
addons:
16+
apt:
17+
sources:
18+
- ubuntu-toolchain-r-test
19+
packages:
20+
- gcc-4.9
21+
- g++-4.9
22+
23+
before_install:
24+
- export CC="gcc-4.9" CXX="g++-4.9"
25+
26+
install:
27+
- npm install
28+
29+
script:
30+
- npm run lint
31+
- npm run unit-testing
32+
33+
after_success:
34+
- cat ./coverage/lcov.info | ./node_modules/.bin/codecov
35+
36+
- stage: Tests
37+
name: Integration Tests
38+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
39+
language: node_js
40+
node_js: 8
41+
1542
addons:
1643
apt:
1744
sources:
@@ -30,13 +57,11 @@ jobs:
3057

3158
script:
3259
- npm run build
33-
- npm test
34-
35-
after_success:
36-
- cat ./coverage/lcov.info | ./node_modules/.bin/codecov
60+
- npm run functional-testing
3761

38-
- name: Documentation tests
39-
stage: Tests
62+
- stage: Tests
63+
name: Documentation Tests
64+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
4065
language: node_js
4166
node_js: 8
4267

@@ -45,8 +70,19 @@ jobs:
4570
script:
4671
- npm run doc-testing
4772

48-
- stage: "Deploy Stable release on NPM"
49-
if: type != pull_request && branch = master
73+
- stage: Tests
74+
name: Dead link check
75+
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
76+
77+
before_script:
78+
- npm run doc-prepare
79+
- npm run --prefix doc/framework clone-repos
80+
script:
81+
- npm run --prefix doc/framework dead-links
82+
83+
84+
- stage: Deploy Stable release on NPM
85+
if: branch = master AND tag IS present AND type != cron
5086
sudo: false
5187
language: node_js
5288
node_js: 8
@@ -113,4 +149,3 @@ jobs:
113149
repo: kuzzleio/sdk-javascript
114150
all_branches: true
115151
condition: $TRAVIS_BRANCH =~ ^[0-9]+-beta$
116-

doc/framework

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/prepare-doc.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/bin/bash
22

3-
set -e
4-
5-
echo "Init documentation framework submodule"
6-
git submodule init framework/
7-
git submodule update framework/
3+
echo "Clone documentation framework"
4+
git clone --depth 10 --single-branch --branch master https://github.com/kuzzleio/documentation.git framework/
85

96
echo "Link local documentation"
10-
mkdir framework/.repos/sdk/sdk-javascript-6/doc/
11-
ln -s ../../../../../6 framework/.repos/sdk/sdk-javascript-6/doc/6
7+
rm framework/src/sdk/js/6 # remove link to submodule
8+
ln -s ../../../../6 framework/src/sdk/js/6 # use current documentation
129

1310
npm --prefix framework/ install

0 commit comments

Comments
 (0)