Permalink
Browse files

Replace make with mage

Fixes #3937
  • Loading branch information...
bep committed Oct 5, 2017
1 parent 06e5633 commit 8d2580f07c0253e12524a4b5c13165f876d00b21
Showing with 16 additions and 95 deletions.
  1. +4 −2 .travis.yml
  2. +5 −3 CONTRIBUTING.md
  3. +0 −86 Makefile
  4. +3 −2 appveyor.yml
  5. +4 −2 snapcraft.yaml
View
@@ -13,9 +13,11 @@ matrix:
- go: tip
fast_finish: true
install:
- make vendor
- go get github.com/magefile/mage
- mage vendor
script:
- make hugo-race check
- mage hugoRace
- mage -v check
- ./hugo -s docs/
- ./hugo --renderToMemory -s docs/
before_install:
View
@@ -145,11 +145,13 @@ started:
### Build Hugo with Your Changes
**Note:** Hugo uses [mage](https://github.com/magefile/mage) to build.
```bash
cd $HOME/go/src/github.com/gohugoio/hugo
make hugo
mage hugo
# or to install in $HOME/go/bin:
make install
mage install
```
### Updating the Hugo Sources
@@ -160,6 +162,6 @@ well.
```
git pull
make vendor
mage vendor
```
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,5 +1,4 @@
init:
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
- set PATH=%PATH%;C:\MinGW\bin;%GOPATH%\bin
- go version
- go env
@@ -10,8 +9,10 @@ clone_folder: C:\GOPATH\src\github.com\gohugoio\hugo
install:
- gem install asciidoctor
- pip install docutils
- go get github.com/magefile/mage
build_script:
- make hugo-race check
- mage hugoRace
- mage -v check
- hugo -s docs/
- hugo --renderToMemory -s docs/
View
@@ -28,9 +28,11 @@ parts:
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
export PATH=$GOPATH/bin:$PATH
cd $GOPATH/src/github.com/gohugoio/hugo
make vendor
make test
go get github.com/magefile/mage
mage vendor
mage test
rm -f $GOPATH/bin/govendor
rm -f $GOPATH/bin/mage
install: |
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/hugo
after: [go]

0 comments on commit 8d2580f

Please sign in to comment.