Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mkdocs-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Janne Mareike Koschinski
mkdocs-material
Commits
a54f57af
Commit
a54f57af
authored
8 years ago
by
squidfunk
Committed by
Martin Donath
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Docker build and added tests
parent
c315a786
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+5
-5
5 additions, 5 deletions
Dockerfile
scripts/travis
+18
-3
18 additions, 3 deletions
scripts/travis
with
23 additions
and
8 deletions
Dockerfile
+
5
−
5
View file @
a54f57af
...
...
@@ -25,11 +25,11 @@ MAINTAINER Martin Donath <martin.donath@squidfunk.com>
WORKDIR
/tmp
# Copy files necessary for build
COPY
material
.
COPY
MANIFEST.in
.
COPY
package.json
.
COPY
requirements.txt
.
COPY
setup.py
.
COPY
material
material
COPY
MANIFEST.in
MANIFEST.in
COPY
package.json
package.json
COPY
requirements.txt
requirements.txt
COPY
setup.py
setup.py
# Perform build and cleanup artifacts
RUN
\
...
...
This diff is collapsed.
Click to expand it.
scripts/travis
+
18
−
3
View file @
a54f57af
...
...
@@ -20,9 +20,11 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# Exit, if one command fails
set
-e
# Run build and terminate on error
yarn run build
[
$?
-gt
0
]
&&
exit
1
"
$(
yarn bin
)
"
/gulp build
--clean
--optimize
--revision
# Deploy documentation to GitHub pages
if
[
"
$TRAVIS_BRANCH
"
==
"master"
-a
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
...
...
@@ -41,10 +43,23 @@ echo "$TRAVIS_BRANCH" | grep -qvE "^[0-9.]+$" && exit 0; :;
# Install dependencies for release build
pip
install
wheel twine
# Build
releas
e and
d
ocker image
# Build
and install them
e and
D
ocker image
python setup.py build sdist bdist_wheel
--universal
python setup.py
install
2>/dev/null
docker build
-t
$TRAVIS_REPO_SLUG
.
# Prepare build regression test
pushd
/tmp
mkdocs new
test
&&
cd test
echo
"theme: material"
>>
mkdocs.yml
# Test Docker image build
docker run
--rm
-it
-v
`
pwd
`
:/docs
$TRAVIS_REPO_SLUG
build
# Clean build test
rm
-rf
/tmp/test
popd
# Push release to PyPI
twine upload
-u
$PYPI_USERNAME
-p
$PYPI_PASSWORD
dist/
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment