summaryrefslogtreecommitdiff
path: root/.gitpod.yml
diff options
context:
space:
mode:
authorTania Allard <taniar.allard@gmail.com>2021-04-26 21:19:39 +0100
committerGitHub <noreply@github.com>2021-04-26 22:19:39 +0200
commit128bbb9d861c2de62cd047925b03f28cf2649e2f (patch)
treeb08996a48aa98e2930de5b276dc2e00ac5bc7825 /.gitpod.yml
parent65a3e7d2d07844ec20aaba5912798ec27a3662f4 (diff)
downloadnumpy-128bbb9d861c2de62cd047925b03f28cf2649e2f.tar.gz
DEV: general Gitpod enhancements (#18822)
Diffstat (limited to '.gitpod.yml')
-rw-r--r--.gitpod.yml63
1 files changed, 58 insertions, 5 deletions
diff --git a/.gitpod.yml b/.gitpod.yml
index c1755607b..dfbee831a 100644
--- a/.gitpod.yml
+++ b/.gitpod.yml
@@ -1,10 +1,63 @@
-image: thomasjpfan/numpy-gitpod:latest
+# Rebuilding NumPy on init - rather than on prebuild: this ensures
+# that even forks do have a usable freshly built NumPy
+# Might delegate this later to prebuild with Q2 improvements on gitpod
+# https://www.gitpod.io/docs/config-start-tasks/#configuring-the-terminal
+# -------------------------------------------------------------------------
+
+image: numpy/numpy-gitpod:latest
tasks:
- # The base image complied numpy with ccache enabled. This second build
- # should be faster since it is using the cache.
- - init: python setup.py build_ext -i
+ - name: Prepare development
+ init: |
+ mkdir -p .vscode
+ cp tools/gitpod/settings.json .vscode/settings.json
+ conda activate numpy-dev
+ python setup.py build_ext --inplace
+ echo "🛠 Completed rebuilding NumPy!! 🛠 "
+ echo "📖 Building docs 📖 "
+ git submodule update --init
+ cd doc
+ make html
+ echo "✨ Pre-build complete! You can close this terminal ✨ "
+
+
+# --------------------------------------------------------
+# exposing ports for liveserve
+ports:
+ - port: 5500
+ onOpen: notify
+
+# --------------------------------------------------------
+# some useful extensions to have
+vscode:
+ extensions:
+ - eamodio.gitlens
+ - njpwerner.autodocstring
+ - lextudio.restructuredtext
+ - ritwickdey.liveserver
+ - ms-python.python
+ - yzhang.markdown-all-in-one
+ - bungcip.better-toml
+ - mhutchie.git-graph
+# --------------------------------------------------------
+# using prebuilds for the container - note: atm this only
+# works for the NumPy repo
+# With this configuration the prebuild will happen on push to master
github:
prebuilds:
+ # enable for main/default branch
master: true
- branches: true
+ # enable for other branches (defaults to false)
+ branches: false
+ # enable for pull requests coming from this repo (defaults to true)
+ pullRequests: false
+ # enable for pull requests coming from forks (defaults to false)
+ pullRequestsFromForks: false
+ # add a check to pull requests (defaults to true)
+ addCheck: false
+ # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
+ addComment: false
+ # add a "Review in Gitpod" button to the pull request's description (defaults to false)
+ addBadge: false
+ # add a label once the prebuild is ready to pull requests (defaults to false)
+ addLabel: false \ No newline at end of file