Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Template
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
Template
Commits
9c5fc89a
Commit
9c5fc89a
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/travisci'
parents
252ab5d1
9451c221
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+16
-0
16 additions, 0 deletions
.travis.yml
tests.sh
+3
-2
3 additions, 2 deletions
tests.sh
tox.ini
+8
-0
8 additions, 0 deletions
tox.ini
with
27 additions
and
2 deletions
.travis.yml
0 → 100644
+
16
−
0
View file @
9c5fc89a
---
language
:
python
python
:
[
"
2.7"
,
"
3.2"
,
"
3.3"
,
"
3.4"
,
"
3.5"
]
dist
:
trusty
sudo
:
false
cache
:
-
pip
install
:
-
pip install tox-travis
script
:
-
tox
notifications
:
email
:
false
This diff is collapsed.
Click to expand it.
tests.sh
+
3
−
2
View file @
9c5fc89a
...
@@ -9,9 +9,10 @@ export name='John'
...
@@ -9,9 +9,10 @@ export name='John'
test
"
$(
echo
'Hello {{ name if name is defined else '
world
' }}.'
| template
)
"
=
"Hello John."
test
"
$(
echo
'Hello {{ name if name is defined else '
world
' }}.'
| template
)
"
=
"Hello John."
echo
Testing arguments and reading/ writing to file.
echo
Testing arguments and reading/ writing to file.
echo
'{{ USER }}'
>
"
$infile
"
echo
'{{ name }}'
>
"
$infile
"
export
name
=
'John'
template
--output
"
$outfile
"
"
$infile
"
template
--output
"
$outfile
"
"
$infile
"
test
"
$(
cat
$outfile
)
"
=
"
$
USER
"
test
"
$(
cat
$outfile
)
"
=
"
$
name
"
echo
Testing JSON parsing.
echo
Testing JSON parsing.
export
json
=
'{"a": 1, "b": 2}'
export
json
=
'{"a": 1, "b": 2}'
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
8
−
0
View file @
9c5fc89a
[tox]
[tox]
envlist
=
py{2,3}
envlist
=
py{2,3}
[travis]
python
=
2.7:
py2
3.2:
py3
3.3:
py3
3.4:
py3
3.5:
py3
[testenv]
[testenv]
basepython
=
basepython
=
py2:
python2
py2:
python2
...
...
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