Skip to content

Commit

Permalink
Speedup the Continuous Documentation using mamba (GenericMappingTools…
Browse files Browse the repository at this point in the history
…#813)

* Simplify the vercel build commands

`gmt` is already listed as a dependency in
[environment.yml](https://github.com/GenericMappingTools/pygmt/blob/master/environment.yml),
so running `conda env create -f environment.yml` already has `gmt`
installed. No need to install `gmt` again.

* Use mamba

Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
  • Loading branch information
seisman and weiji14 committed Jan 30, 2021
1 parent c27f1bf commit 7c35bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"build:miniconda": "curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash ~/miniconda.sh -b -p $HOME/miniconda",
"build:pygmt": "conda env create -f environment.yml && source activate pygmt && conda install -c conda-forge -y gmt==6.1.1 && make install",
"build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && make install",
"build:docs": "source activate pygmt && cd doc && make all && mv _build/html ../public",
"build": "export PATH=$HOME/miniconda/bin:$PATH && npm run build:miniconda && npm run build:pygmt && npm run build:docs"
}
Expand Down

0 comments on commit 7c35bb0

Please sign in to comment.