Skip to content

Commit

Permalink
Update gitpod config (#53)
Browse files Browse the repository at this point in the history
* Update gitpod config

* Workaround for prebuild ts
  • Loading branch information
axonasif committed Oct 11, 2023
1 parent 84c345b commit 891fe29
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ image:

tasks:
- name: Project build (cache) and run instructions
init: cargo build
init: |
cargo build
# workaround for https://github.com/gitpod-io/gitpod/issues/524
find target -exec stat --format='%.Y %n' {} + > /workspace/.ts
command: |
# workaround for https://github.com/gitpod-io/gitpod/issues/524
while read -r ts file; do touch -d "@${ts}" "${file}"; done < /workspace/.ts
# Fully cleanup terminal
printf "\033[3J\033c\033[3J"
# Install clippy and rustfmt
rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain nightly-2023-06-27
rustup component add rustfmt --toolchain nightly-2023-06-27
# Restore ProdBotConfig.toml
if test -n "${PROD_DISCORD_BOT_CONFIG_ENCODED:-}"; then {
Expand Down Expand Up @@ -50,28 +58,10 @@ tasks:
# command: |
# # Fully cleanup terminal
# printf "\033[3J\033c\033[3J"

# # Start server
# meilisearch --no-analytics --master-key "${MEILISEARCH_API_KEY}" --env development --http-addr 0.0.0.0:7700 --db-path ./data.ms

vscode:
extensions:
- rust-lang.rust-analyzer
- tamasfe.even-better-toml

github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
# DANGER: do not enable!!
pullRequestsFromForks: false
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: true
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true

0 comments on commit 891fe29

Please sign in to comment.