Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
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
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
d4b22516
Commit
d4b22516
authored
4 years ago
by
Rivers, Travis (Contractor) Creighton
Committed by
Jeremy M Fee
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Gitlab tests2
parent
e9e3423f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+68
-0
68 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
Pipfile
+1
-1
1 addition, 1 deletion
Pipfile
with
71 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
d4b22516
.coverage
.coverage
cov.xml
.DS_Store
.DS_Store
node_modules
node_modules
*.pyc
*.pyc
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
68
−
0
View file @
d4b22516
image
:
${DEVOPS_REGISTRY}usgs/centos:latest
stages
:
-
test
-
integration
-
deploy
variables
:
CI_REGISTRY
:
${CODE_REGISTRY}
CI_REGISTRY_IMAGE
:
${CODE_REGISTRY_IMAGE}
## --------------------------------------------------
# Templates
## --------------------------------------------------
.check_code
:
cache
:
{}
image
:
usgs/centos:latest
script
:
-
yum install -y wget which
-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
-
bash miniconda.sh -b -p $HOME/miniconda
-
export PATH="$HOME/miniconda/bin:$PATH"
-
conda config --set always_yes yes --set changeps1 no
-
conda update --yes conda
-
conda info -a
# Install Project Dependencies
-
conda config --add channels conda-forge
-
conda install python=${PYTHON_VERSION} obspy pycurl
-
pip install pipenv
-
export LC_ALL=C.UTF-8
-
export LANG=C.UTF-8
-
pipenv --site-packages install --dev --pre --skip-lock
# Run Code Checks
-
pipenv run black --check .
-
pipenv run pytest --cov-report xml:cov.xml --cov=test/
artifacts
:
paths
:
-
cov.xml
reports
:
junit
:
cov.xml
stage
:
test
tags
:
-
development
variables
:
PYTHON_VERSION
:
3.8
## --------------------------------------------------
# Test Stage
## --------------------------------------------------
Check Python 3.6
:
extends
:
-
.check_code
variables
:
PYTHON_VERSION
:
'
3.6'
Check Python 3.7
:
extends
:
-
.check_code
variables
:
PYTHON_VERSION
:
'
3.7'
Check Python 3.8
:
extends
:
-
.check_code
variables
:
PYTHON_VERSION
:
'
3.8'
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
d4b22516
ARG
FROM_IMAGE=usgs/centos:
8
ARG
FROM_IMAGE=usgs/centos:
latest
FROM
${FROM_IMAGE}
FROM
${FROM_IMAGE}
LABEL
maintainer="Jeremy Fee <jmfee@usgs.gov>"
LABEL
maintainer="Jeremy Fee <jmfee@usgs.gov>"
...
...
This diff is collapsed.
Click to expand it.
Pipfile
+
1
−
1
View file @
d4b22516
...
@@ -21,7 +21,7 @@ databases = {extras = ["postgresql", "sqlite"],version = "*"}
...
@@ -21,7 +21,7 @@ databases = {extras = ["postgresql", "sqlite"],version = "*"}
fastapi
=
"*"
fastapi
=
"*"
httpx
=
"=
=
0.11
.
1
"
httpx
=
"=
=
0.11
.
1
"
openpyxl
=
"*"
openpyxl
=
"*"
pydantic
=
"
=
=
1.4
"
pydantic
=
"
*
"
sqlalchemy
=
"*"
sqlalchemy
=
"*"
sqlalchemy-utc
=
"*"
sqlalchemy-utc
=
"*"
typing
=
"*"
typing
=
"*"
...
...
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