forked from gohugoio/hugo
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes gohugoio#7380 Fixes gohugoio#8102
- Loading branch information
Showing
24 changed files
with
915 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
on: [push, pull_request] | ||
name: Test | ||
jobs: | ||
test: | ||
env: | ||
GOPROXY: https://proxy.golang.org | ||
HUGO_BUILD_TAGS: extended | ||
GO111MODULE: on | ||
HUGO_TIMEOUT: 31000 | ||
strategy: | ||
matrix: | ||
go-version: [1.15.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Install Ruby | ||
uses: actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526 | ||
with: | ||
ruby-version: '2.7' | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install Mage | ||
run: go get github.com/magefile/mage@07afc7d24f4d6d6442305d49552f04fbda5ccb3e | ||
- name: Install asciidoctor | ||
uses: reitzig/actions-asciidoctor@7570212ae20b63653481675fb1ff62d1073632b0 | ||
- name: Checkout code | ||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
- run: pip install docutils | ||
- run: rst2html.py --version | ||
- if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y pandoc | ||
- if: matrix.os == 'macos-latest' | ||
run: | | ||
brew install pandoc | ||
- if: matrix.os == 'windows-latest' | ||
run: | | ||
choco install pandoc | ||
- run: pandoc -v | ||
- name: Install dart-sass-embedded Linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-linux-x64.tar.gz; | ||
echo "642738beaea4ef1b9168446bc105267a2948a5e939537f5bd5afb48159140a44 sass_embedded-1.0.0-beta.5-linux-x64.tar.gz" | sha256sum -c; | ||
tar -xvf sass_embedded-1.0.0-beta.5-linux-x64.tar.gz; | ||
echo "$GITHUB_WORKSPACE/sass_embedded/" >> $GITHUB_PATH | ||
- name: Install dart-sass-embedded MacOS | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-macos-x64.tar.gz; | ||
echo "47b55a39126155f89fdfb8eea7c19ba976b3f6fadbdb6867e5582a18137bd180 sass_embedded-1.0.0-beta.5-macos-x64.tar.gz" | shasum -a 256 -c; | ||
tar -xvf sass_embedded-1.0.0-beta.5-macos-x64.tar.gz; | ||
echo "$GITHUB_WORKSPACE/sass_embedded/" >> $GITHUB_PATH | ||
- name: Install dart-sass-embedded Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-windows-x64.zip; | ||
echo "5e65c0d8cbe038b6a120a3e7f390ad731708998f37c2de8ba565c51746a4588c sass_embedded-1.0.0-beta.5-windows-x64.zip" | sha256sum -c; | ||
unzip sass_embedded-1.0.0-beta.5-windows-x64.zip; | ||
echo "$env:GITHUB_WORKSPACE/sass_embedded/" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf-8 -Append | ||
- name: Test | ||
run: | | ||
mage -v test | ||
mage -v check; | ||
mage -v hugo | ||
HUGO_IGNOREERRORS=error-remote-getjson ./hugo -s docs/ | ||
HUGO_IGNOREERRORS=error-remote-getjson ./hugo --renderToMemory -s docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
language: go | ||
|
||
dist: bionic | ||
|
||
env: | ||
global: | ||
- CACHE_NAME=${TRAVIS_ARCH} | ||
- GO111MODULE=on | ||
- GOPROXY=https://proxy.golang.org | ||
- HUGO_BUILD_TAGS=extended | ||
|
||
git: | ||
depth: false | ||
go: | ||
- "1.14.8" | ||
- "1.15.1" | ||
- master | ||
|
||
arch: | ||
- amd64 | ||
- arm64 | ||
|
||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
jobs: | ||
allow_failures: | ||
- go: master | ||
- arch: arm64 | ||
fast_finish: true | ||
exclude: | ||
- os: windows | ||
go: master | ||
- arch: arm64 | ||
os: osx | ||
- arch: arm64 | ||
os: windows | ||
|
||
cache: | ||
directories: | ||
- $HOME/gopath/pkg/mod | ||
- $HOME/.cache/go-build | ||
- $HOME/Library/Caches/go-build | ||
- $HOME/AppData/Local/go-build | ||
|
||
before_install: | ||
- mkdir -p $HOME/bin | ||
- export PATH="$HOME/bin":"$PATH"; | ||
- echo "Home is $HOME"; | ||
- echo "Path is $PATH"; | ||
- df -h | ||
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then | ||
choco install mingw -y; | ||
choco install -y --force nodejs; | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-windows-x64.zip; | ||
echo "5e65c0d8cbe038b6a120a3e7f390ad731708998f37c2de8ba565c51746a4588c sass_embedded-1.0.0-beta.5-windows-x64.zip" | sha256sum -c - || exit 1; | ||
unzip sass_embedded-1.0.0-beta.5-windows-x64.zip -d $HOME/bin; | ||
export PATH=/c/tools/mingw64/bin:"$PATH"; | ||
fi | ||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-macos-x64.tar.gz; | ||
echo "47b55a39126155f89fdfb8eea7c19ba976b3f6fadbdb6867e5582a18137bd180 sass_embedded-1.0.0-beta.5-macos-x64.zip" | sha256sum -c - || exit 1; | ||
tar -xvf sass_embedded-1.0.0-beta.5-macos-x64.tar.gz -C $HOME/bin; | ||
fi | ||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then | ||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/1.0.0-beta.5/sass_embedded-1.0.0-beta.5-linux-x64.tar.gz; | ||
echo "642738beaea4ef1b9168446bc105267a2948a5e939537f5bd5afb48159140a44 sass_embedded-1.0.0-beta.5-linux-x64.zip" | sha256sum -c - || exit 1; | ||
tar -xvf sass_embedded-1.0.0-beta.5-linux-x64.tar.gz -C $HOME/bin; | ||
fi | ||
- ls $HOME/bin; | ||
- gem install asciidoctor | ||
- type asciidoctor | ||
|
||
install: | ||
- mkdir -p $HOME/src | ||
- mv $TRAVIS_BUILD_DIR $HOME/src | ||
- export TRAVIS_BUILD_DIR=$HOME/src/hugo | ||
- cd $HOME/src/hugo | ||
- go get github.com/magefile/mage | ||
|
||
script: | ||
- go mod download | ||
- go mod verify | ||
- mage -v test | ||
- if [ "$TRAVIS_ARCH" = "amd64" ]; then | ||
mage -v check; | ||
else | ||
HUGO_TIMEOUT=30000 mage -v check; | ||
fi | ||
- mage -v hugo | ||
- HUGO_IGNOREERRORS=error-remote-getjson ./hugo -s docs/ | ||
- HUGO_IGNOREERRORS=error-remote-getjson ./hugo --renderToMemory -s docs/ | ||
- df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.