Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7aa6f67

Browse files
committed
[CI] Switch documentation build from Travis to GitHub Actions
1 parent f2a4392 commit 7aa6f67

6 files changed

Lines changed: 34 additions & 33 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
paths:
6+
- "docs/**"
7+
pull_request:
8+
paths:
9+
- "docs/**"
10+
release:
11+
types: [created]
12+
schedule:
13+
-
14+
cron: "0 1 * * 6" # Run at 1am every Saturday
15+
16+
jobs:
17+
tests:
18+
runs-on: ubuntu-latest
19+
name: "Build"
20+
steps:
21+
-
22+
uses: actions/checkout@v2
23+
24+
-
25+
name: Install documentation dependencies
26+
run: docker build -t sylius-docs docs
27+
28+
-
29+
name: Build the documentation
30+
run: docker run -it --rm sylius-docs

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ jobs:
2929
-
3030
php: 7.3
3131
env:
32-
- SYLIUS_SUITE="docs packages"
32+
- SYLIUS_SUITE="packages"
3333
- SYMFONY_VERSION="4.4.*"
3434
services:
35-
- docker
3635
- mysql
3736
addons:
3837
apt:

docs/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ code=0
66

77
sphinx-build -nWT . build || code=$?
88
# Flags used here
9-
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
10-
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
11-
# -T Displays the full stack trace if an unhandled exception occurs.
9+
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
10+
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
11+
# -T Displays the full stack trace if an unhandled exception occurs.
1212

1313
if [[ ${code} != 0 ]]; then
1414
(>&2 echo "Build failed, rerunning to show all the warnings and errors")

etc/travis/suites/docs/install.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

etc/travis/suites/docs/is_suitable.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

etc/travis/suites/docs/script.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)