Skip to content

Commit

Permalink
Merge branch '1.8'
Browse files Browse the repository at this point in the history
* 1.8:
  [CI] Switch documentation build from Travis to GitHub Actions
  • Loading branch information
pamil committed Nov 25, 2020
2 parents ad1a2fc + 1f24882 commit f25e2f9
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 33 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation

on:
push:
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"
release:
types: [created]
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday

jobs:
tests:
runs-on: ubuntu-latest
name: "Build"
steps:
-
uses: actions/checkout@v2

-
name: Install documentation dependencies
run: docker build -t sylius-docs docs

-
name: Build the documentation
run: docker run --rm sylius-docs
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
-
php: 7.3
env:
- SYLIUS_SUITE="docs packages"
- SYLIUS_SUITE="packages"
- SYMFONY_VERSION="4.4.*"
services:
- docker
- mysql
addons:
apt:
Expand Down
6 changes: 3 additions & 3 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ code=0

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

if [[ ${code} != 0 ]]; then
(>&2 echo "Build failed, rerunning to show all the warnings and errors")
Expand Down
7 changes: 0 additions & 7 deletions etc/travis/suites/docs/install.sh

This file was deleted.

15 changes: 0 additions & 15 deletions etc/travis/suites/docs/is_suitable.sh

This file was deleted.

6 changes: 0 additions & 6 deletions etc/travis/suites/docs/script.sh

This file was deleted.

0 comments on commit f25e2f9

Please sign in to comment.