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
e1d205b3
Unverified
Commit
e1d205b3
authored
6 years ago
by
jlaura
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updates .travis for branch dependent builds
Again, modifying in the repo in order to get Travis to do its thing.
parent
da137da7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis.yml
+19
-5
19 additions, 5 deletions
.travis.yml
with
19 additions
and
5 deletions
.travis.yml
+
19
−
5
View file @
e1d205b3
language
:
cpp
sudo
:
false
branches
:
only
:
-
master
-
dev
matrix
:
include
:
-
os
:
linux
...
...
@@ -47,5 +52,14 @@ 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 yes
-
conda build --token $CONDA_UPLOAD_TOKEN recipe -q
-
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" ]; then
anaconda -t="$CONDA_UPLOAD_TOKEN" upload $builddir --label main --force;
elif [ "$TRAVIS_BRANCH" == "dev" ]; 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