Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
57ee5d96
Commit
57ee5d96
authored
Apr 14, 2017
by
Mahmoud Zalt
Browse files
Options
Browse Files
Download
Plain Diff
travis for docker build and hugo site
parents
919e0a75
9f4aaa9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
12 deletions
+39
-12
.travis.yml
.travis.yml
+15
-12
travis-build.sh
_scripts/travis-build.sh
+24
-0
No files found.
.travis.yml
View file @
57ee5d96
language
:
go
install
:
-
export HUGO_VERSION=0.20
-
export HUGO_PACKAGE=hugo_${HUGO_VERSION}_Linux-64bit
-
curl -L https://github.com/spf13/hugo/releases/download/v$HUGO_VERSION/$HUGO_PACKAGE.tar.gz | tar xz
-
mkdir $HOME/bin
-
mv ./hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 $HOME/bin/hugo
script
:
-
rm -rf docs
-
cd DOCUMENTATION
-
hugo
language
:
bash
sudo
:
required
services
:
-
docker
env
:
matrix
:
-
PHP_VERSION=56
-
PHP_VERSION=70
-
PHP_VERSION=71
-
HUGO_VERSION=0.20
script
:
./scripts/build.sh
deploy
:
provider
:
pages
skip_cleanup
:
true
local_dir
:
../
docs
local_dir
:
docs
github_token
:
$GITHUB_TOKEN
on
:
branch
:
master
condition
:
-n "${HUGO_VERSION}"
notifications
:
email
:
false
_scripts/travis-build.sh
0 → 100755
View file @
57ee5d96
#!/usr/bin/env bash
if
[
-n
"
${
PHP_VERSION
}
"
]
;
then
cp
env-example .env
docker-compose build
docker images
fi
if
[
-n
"
${
HUGO_VERSION
}
"
]
;
then
HUGO_PACKAGE
=
hugo_
${
HUGO_VERSION
}
_Linux-64bit
HUGO_BIN
=
hugo_
${
HUGO_VERSION
}
_linux_amd64
# Download hugo binary
curl
-L
https://github.com/spf13/hugo/releases/download/v
$HUGO_VERSION
/
$HUGO_PACKAGE
.tar.gz |
tar
xz
mkdir
$HOME
/bin
mv
./
${
HUGO_BIN
}
/
${
HUGO_BIN
}
$HOME
/bin/hugo
# Remove existing docs
rm
-r
./docs
# Build docs
cd
DOCUMENTATION
hugo
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment