Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Usgscsm
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Usgscsm
Commits
1b2d30b3
Commit
1b2d30b3
authored
3 years ago
by
Jesse Mapel
Committed by
Jesse Mapel
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initial GH actions
parent
ac855e71
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci_testing.yml
+53
-0
53 additions, 0 deletions
.github/workflows/ci_testing.yml
.travis.yml
+0
-67
0 additions, 67 deletions
.travis.yml
with
53 additions
and
67 deletions
.github/workflows/ci_testing.yml
0 → 100644
+
53
−
0
View file @
1b2d30b3
name
:
Pull-Request-CI
on
:
pull_request
:
branches
:
-
dev
push
:
branches
:
-
dev
jobs
:
Build-and-Test
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
]
python-version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
]
defaults
:
run
:
shell
:
bash -l {0}
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
uses
:
conda-incubator/setup-miniconda@v2
with
:
miniconda-version
:
"
latest"
activate-environment
:
usgscsm
environment-file
:
environment.yml
auto-activate-base
:
false
auto-update-conda
:
true
python-version
:
${{ matrix.python-version }}
-
name
:
Check build environment
run
:
|
conda list
-
name
:
Build Package
run
:
|
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCOVERAGE=ON ..
cmake --build .
-
name
:
Test Package
run
:
|
cd build
ctest -VV
-
name
:
Upload Coverage
uses
:
codecov/codecov-action@v1
with
:
token
:
${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error
:
true
verbose
:
true
if
:
matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
This diff is collapsed.
Click to expand it.
.travis.yml
deleted
100644 → 0
+
0
−
67
View file @
ac855e71
language
:
cpp
sudo
:
false
branches
:
only
:
-
master
-
dev
matrix
:
include
:
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
g++-7
env
:
-
MATRIX_EVAL="CXX=g++-7 && CC=gcc-7"
-
os
:
osx
osx_image
:
xcode9.4
env
:
-
MATRIX_EVAL="CXX=clang++ && CC=clang"
before_install
:
-
echo "$TRAVIS_PULL_REQUEST"
-
eval "${MATRIX_EVAL}"
-
|
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pip install --user cpp-coveralls;
fi
install
:
# Install a supported cmake version (>= 3.10)
-
|
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh;
fi
-
bash miniconda.sh -b -p $HOME/miniconda
-
source $HOME/miniconda/etc/profile.d/conda.sh
-
conda env create -n usgscsm -f environment.yml
script
:
-
conda activate usgscsm
-
mkdir build
-
cd build
-
cmake -DUSGSCSM_EXTERNAL_DEPS=ON -DCOVERAGE=ON ..
-
cmake --build .
-
ctest -VV
-
cd ..
after_success
:
-
conda install -y -q conda-build anaconda-client
# Pull the libcsm for the build from our anaconda channel
-
conda config --add channels usgs-astrogeology
-
conda config --set anaconda_upload no
-
conda build recipe -q
# Get the conda build output dir
-
builddir=(`conda build recipe --output`)
# Label based on the branch and upload to anaconda.org
-
|
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
anaconda -t="$CONDA_UPLOAD_TOKEN" upload $builddir;
elif [ "$TRAVIS_BRANCH" == "dev" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
anaconda -t="$CONDA_UPLOAD_TOKEN" upload $builddir --label dev --force;
fi
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