Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
.gitpod-setup-trac-remote.sh: New, move other scripts back into .gitp…
Browse files Browse the repository at this point in the history
…od.yml, chained with &&
  • Loading branch information
Matthias Koeppe committed Oct 1, 2022
1 parent 9f055b5 commit 400b680
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
16 changes: 0 additions & 16 deletions .gitpod-init.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .gitpod-command.sh → .gitpod-setup-trac-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
# Exit on error
set -e

# Activate conda environment
conda config --append envs_dirs $(pwd)
conda activate $(pwd)/venv

# RestructuredText extension recommends python extension, although we have already installed it
## So disable the recommendation dialog
echo "{\"restructuredtext.pythonRecommendation.disabled\": true}" > /workspace/.vscode-remote/data/Machine/settings.json

# Setup trac as remote
## In order to push to trac, generate a new key with `ssh-keygen -f tempkey` and save the private key to gitpod `gp env PRIVATE_SSH_KEY="$(<tempkey)"` (or by following https://www.gitpod.io/docs/environment-variables#using-the-account-settings)
## then follow https://doc.sagemath.org/html/en/developer/trac.html#linking-your-public-key-to-your-trac-account to register the public key with trac.
Expand Down
20 changes: 18 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@ image:
# Start up tasks. https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Setup
init: ./.gitpod-init.sh
command: ./.gitpod-command.sh
# Create conda environment, then configure and build sage
init: >-
./bootstrap-conda
&& mamba env create --file src/environment-dev.yml --prefix venv
&& conda config --append envs_dirs $(pwd)
&& conda activate $(pwd)/venv
&& ./bootstrap
&& ./configure --enable-build-as-root --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX
&& pip install --no-build-isolation -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
&& pip install --no-build-isolation -v -v -e ./src
# Activate conda environment, set up Trac remote
command: >-
# RestructuredText extension recommends python extension, although we have already installed it
## So disable the recommendation dialog
echo "{\"restructuredtext.pythonRecommendation.disabled\": true}" > /workspace/.vscode-remote/data/Machine/settings.json
&& conda config --append envs_dirs $(pwd)
&& conda activate $(pwd)/venv
&& ./.gitpod-setup-trac-remote.sh
env:
SAGE_NUM_THREADS: 8

Expand Down

0 comments on commit 400b680

Please sign in to comment.