Skip to content

Commit 496533f

Browse files
author
Nate McMaster
committed
Fix build script
1 parent 3320d98 commit 496533f

File tree

4 files changed

+40
-10
lines changed

4 files changed

+40
-10
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
* text=auto
1+
* text=auto
2+
*.sh text eol=lf

.travis.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ sudo: false
22
language: python
33
python:
44
- "3.4"
5-
# command to install dependencies
6-
install: "pip install -q -r requirements.txt"
7-
# command to run tests
5+
install: "./build.sh --target install"
86
script:
9-
- sphinx-build -nW -b html -d docs/_build/doctrees docs docs/_build/html
10-
# Flags used here, not in `make html`:
11-
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
12-
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
13-
7+
- ./build.sh --target compile

build.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
function compile {
6+
# Flags used here, not in `make html`:
7+
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
8+
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
9+
10+
sphinx-build -nW -b html -d docs/_build/doctrees docs docs/_build/html
11+
}
12+
13+
function install {
14+
pip install -q -r requirements.txt
15+
}
16+
17+
function default {
18+
install
19+
compile
20+
}
21+
22+
target="default"
23+
24+
while [[ $# > 0 ]]; do
25+
case $1 in
26+
-t|--target)
27+
shift
28+
target=$1
29+
;;
30+
esac
31+
shift
32+
done
33+
34+
echo "Running target '$target'"
35+
$target

docs/platforms/uwp/getting-started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Upgrade Microsoft.NETCore.UniversalWindowsPlatform
4141
Using ``Microsoft.NETCore.UniversalWindowsPlatform`` 5.2.0 will cause UWP app store submissions to fail.
4242
Until this is resolved, add the following to "dependencies" in project.json.
4343

44-
.. code-block:: json
44+
.. code-block:: javascript
4545
4646
"dependencies": {
4747

0 commit comments

Comments
 (0)