Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
adaptive-paper
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
Show more breadcrumbs
Quantum Tinkerer
adaptive-paper
Commits
ba9c5369
Commit
ba9c5369
authored
5 years ago
by
Bas Nijholt
Browse files
Options
Downloads
Patches
Plain Diff
add Dockerfile and CI
parent
8c793659
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#20159
failed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+82
-0
82 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+10
-0
10 additions, 0 deletions
Dockerfile
with
92 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
82
−
0
View file @
ba9c5369
image
:
gitlab.kwant-project.org:5005/qt/adaptive-paper
stages
:
-
build-env
-
build
-
test
variables
:
# rsync is used to send documentation to our web servers: we never send any
# secret information, and using 'ssh-keyscan' causes the CI server's IP to be blacklisted
IGNORE_HOSTKEY
:
"
ssh
-o
StrictHostKeyChecking=no
-o
UserKnownHostsFile=/dev/null"
## Building Docker environments
## Only runs when docker specifications change
.build-env
:
&build-env
stage
:
build-env
when
:
manual
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
artifacts
:
untracked
:
true
expire_in
:
1 hour
before_script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
build-env:ubuntu
:
<<
:
*build-env
only
:
changes
:
-
docker/Dockerfile
script
:
-
/kaniko/executor
--context $CI_PROJECT_DIR/docker
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE/ubuntu
## Build Jobs
build:ubuntu
:
<<
:
*build
<<
:
*ubuntu_env
## Test Jobs
check whitespace style
:
stage
:
test
script
:
./check_whitespace
allow_failure
:
true
check for dependencies installed
:
stage
:
test
script
:
-
if [ -d .eggs ]; then echo "$(ls -d .eggs/*/) downloaded by build, update build environment" >&2; fi
allow_failure
:
true
.test
:
&test
stage
:
test
script
:
-
py.test -r w --flakes kwant --junitxml=tests.xml --durations=10
artifacts
:
reports
:
junit
:
tests.xml
.make
:
&make
stage
:
test
script
:
-
make
artifacts
:
paths
:
-
*pdf
test:ubuntu
:
<<
:
*test
<<
:
*ubuntu_env
dependencies
:
-
build:ubuntu
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
10
−
0
View file @
ba9c5369
FROM
continuumio/miniconda
MAINTAINER
Bas Nijholt <bas@nijho.lt>
RUN
apt-get update
-q
&&
apt-get
install
-qy
\
texlive-full
\
python-pygments gnuplot
\
make git
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
conda-env create
--yes
-f
environment.yml
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