Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
beea1fa9
Unverified
Commit
beea1fa9
authored
7 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
[ci] fixup missing template substitution
parent
da30b8ef
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.after_script.bash
+2
-1
2 additions, 1 deletion
.travis.after_script.bash
.travis.make_env_file.py
+13
-0
13 additions, 0 deletions
.travis.make_env_file.py
.travis.script.bash
+15
-3
15 additions, 3 deletions
.travis.script.bash
.travis.yml
+9
-11
9 additions, 11 deletions
.travis.yml
with
39 additions
and
15 deletions
.travis.after_script.bash
+
2
−
1
View file @
beea1fa9
#!/bin/bash
#!/bin/bash
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# this file is treated as a jinja2 template
if
[[
$TRAVIS_JOB_NUMBER
==
*
.2
]]
;
then
if
[[
$TRAVIS_JOB_NUMBER
==
*
.2
]]
;
then
git config
--global
hooks.clangformat
${
CLANG_FORMAT
}
git config
--global
hooks.clangformat
${
CLANG_FORMAT
}
...
@@ -12,4 +13,4 @@ if [[ $TRAVIS_JOB_NUMBER == *.2 ]] ; then
...
@@ -12,4 +13,4 @@ if [[ $TRAVIS_JOB_NUMBER == *.2 ]] ; then
${
SUPERDIR
}
/.ci/deploy_docs.sh
${
MY_MODULE
}
"
${
DUNE_BUILD_DIR
}
"
${
SUPERDIR
}
/.ci/deploy_docs.sh
${
MY_MODULE
}
"
${
DUNE_BUILD_DIR
}
"
fi
fi
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.travis.make_env_file.py
0 → 100644
+
13
−
0
View file @
beea1fa9
#!/usr/bin/env python
import
os
from
os.path
import
expanduser
home
=
expanduser
(
"
~
"
)
prefixes
=
os
.
environ
.
get
(
'
ENV_PREFIXES
'
,
'
TRAVIS CI encrypt TOKEN TESTS
'
).
split
(
'
'
)
env_file
=
os
.
environ
.
get
(
'
ENV_FILE
'
,
os
.
path
.
join
(
home
,
'
env
'
))
with
open
(
env_file
,
'
wt
'
)
as
env
:
for
k
,
v
in
os
.
environ
.
items
():
for
pref
in
prefixes
:
if
k
.
startswith
(
pref
):
env
.
write
(
'
{}=
"
{}
"
\n
'
.
format
(
k
,
v
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.travis.script.bash
+
15
−
3
View file @
beea1fa9
#!/bin/bash
#!/bin/bash
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# this file is treated as a jinja2 template
set
-e
set
-e
set
-x
set
-x
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
configure
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
configure
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
test_binaries
if
[
x
"
${
TESTS
}
"
==
x
]
;
then
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec ninja
-v
test_binaries
else
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec ninja
-v
test_binaries_builder_
${
TESTS
}
fi
if
[[
"
${
CC
}
"
==
"gcc"
*
]]
;
then
if
[[
"
${
CC
}
"
==
"gcc"
*
]]
;
then
lcov
-q
--gcov-tool
${
GCOV
}
-b
${
SUPERDIR
}
/
${
MY_MODULE
}
-d
${
DUNE_BUILD_DIR
}
/
${
MY_MODULE
}
-c
-o
${
HOME
}
/baseline.lcov
--no-external
--initial
lcov
-q
--gcov-tool
${
GCOV
}
-b
${
SUPERDIR
}
/
${
MY_MODULE
}
-d
${
DUNE_BUILD_DIR
}
/
${
MY_MODULE
}
-c
-o
${
HOME
}
/baseline.lcov
--no-external
--initial
fi
fi
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
test
source
${
OPTS
}
CTEST
=
"ctest -V --timeout
${
DXT_TEST_TIMEOUT
:-
300
}
-j
${
DXT_TEST_PROCS
:-
2
}
"
if
[
x
"
${
TESTS
}
"
==
x
]
;
then
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
CTEST
}
else
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
CTEST
}
-L
"^builder_
${
TESTS
}
$"
fi
${
SUPERDIR
}
/.ci/init_sshkey.bash
${
encrypted_862ca47045d1_key
}
${
encrypted_862ca47045d1_iv
}
keys/dune-community/dune-xt-common-testlogs
${
SUPERDIR
}
/.ci/init_sshkey.bash
${
encrypted_862ca47045d1_key
}
${
encrypted_862ca47045d1_iv
}
keys/dune-community/dune-xt-common-testlogs
# retry this step becuase of the implicated race condition in cloning and pushing with multiple builder running in parallel
# retry this step becuase of the implicated race condition in cloning and pushing with multiple builder running in parallel
${
SUPERDIR
}
/scripts/bash/travis_upload_test_logs.bash
${
DUNE_BUILD_DIR
}
/
${
MY_MODULE
}
/dune/xt/
*
/test/
${
SUPERDIR
}
/scripts/bash/travis_upload_test_logs.bash
${
DUNE_BUILD_DIR
}
/
${
MY_MODULE
}
/dune/xt/
*
/test/
...
@@ -21,4 +33,4 @@ ${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ${BUILD_CMD} headercheck
...
@@ -21,4 +33,4 @@ ${SRC_DCTRL} ${BLD} --only=${MY_MODULE} bexec ${BUILD_CMD} headercheck
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
install
|
grep
-v
"Installing"
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
install
|
grep
-v
"Installing"
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
package_source
${
SRC_DCTRL
}
${
BLD
}
--only
=
${
MY_MODULE
}
bexec
${
BUILD_CMD
}
package_source
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
# ****** THIS FILE IS AUTOGENERATED, DO NOT EDIT **********
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.travis.yml
+
9
−
11
View file @
beea1fa9
# This file is part of the dune-xt-common project:
# This file is part of the dune-xt-common project:
# https://github.com/dune-community/dune-xt-common
# https://github.com/dune-community/dune-xt-common
# Copyright 2009-2017 dune-xt-
comm
on developers and contributors. All rights reserved.
# Copyright 2009-2017 dune-xt-
functi
on
s
developers and contributors. All rights reserved.
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
# or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
# with "runtime exception" (http://www.dune-project.org/license.html)
# with "runtime exception" (http://www.dune-project.org/license.html)
# Authors:
# Authors:
# Felix Schindler (201
5
- 2017)
# Felix Schindler (201
6
- 2017)
# Rene Milk (201
5
- 2017)
# Rene Milk (201
6
- 2017)
# Tobias Leibner (
2015 -
2016)
# Tobias Leibner (2016)
sudo
:
required
sudo
:
required
dist
:
trusty
dist
:
trusty
...
@@ -19,9 +19,7 @@ before_script:
...
@@ -19,9 +19,7 @@ before_script:
# get image with fallback to master branch of the super repo
# get image with fallback to master branch of the super repo
-
docker pull ${IMAGE} || export IMAGE="dunecommunity/${MY_MODULE}-testing_${DOCKER_TAG}:master" ; docker pull ${IMAGE}
-
docker pull ${IMAGE} || export IMAGE="dunecommunity/${MY_MODULE}-testing_${DOCKER_TAG}:master" ; docker pull ${IMAGE}
-
export ENV_FILE=${HOME}/env
-
export ENV_FILE=${HOME}/env
-
printenv | \grep TRAVIS > ${ENV_FILE}
-
python ./.travis.make_env_file.py
-
printenv | \grep encrypt >> ${ENV_FILE}
-
printenv | \grep TOKEN >> ${ENV_FILE}
-
export DOCKER_RUN="docker run --env-file ${ENV_FILE} -v ${TRAVIS_BUILD_DIR}:/root/src/${MY_MODULE} ${IMAGE}"
-
export DOCKER_RUN="docker run --env-file ${ENV_FILE} -v ${TRAVIS_BUILD_DIR}:/root/src/${MY_MODULE} ${IMAGE}"
script
:
script
:
...
@@ -51,7 +49,7 @@ env:
...
@@ -51,7 +49,7 @@ env:
matrix
:
matrix
:
include
:
include
:
-
env
:
DOCKER_TAG=gcc_full
-
env
:
DOCKER_TAG=gcc_full
-
env
:
DOCKER_TAG=gcc_no_istl_no_disc
-
env
:
DOCKER_TAG=gcc_no_istl_no_disc
-
env
:
DOCKER_TAG=gcc_no_disc
-
env
:
DOCKER_TAG=gcc_no_disc
-
env
:
DOCKER_TAG=clang_full
-
env
:
DOCKER_TAG=clang_full
\ No newline at end of file
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