From 84f26ae1217c4fa104c0b3347c0763c4f8e7d1fb Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Mon, 3 Feb 2020 21:30:43 +0000 Subject: [PATCH 1/4] Add gitpod configuration --- .gitpod.Dockerfile | 13 +++++++++++++ .gitpod.yml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000000..fe57919463 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,13 @@ +FROM gitpod/workspace-full + +USER gitpod + +# Update Rust to the latest version +RUN rm -rf ~/.rustup && ~/.cargo/bin/rustup update stable + +# Set up wasm-pack and wasm32-unknown-unknown for rustpython_wasm +RUN export PATH=$HOME/.cargo/bin:$PATH && \ + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && \ + rustup target add wasm32-unknown-unknown + +USER root diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..527c76d392 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,2 @@ +image: + file: .gitpod.Dockerfile From bd6179879b98b7a2c8fff1958fe25a79ade82c61 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 4 Feb 2020 00:06:17 +0000 Subject: [PATCH 2/4] Add Gitpod badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9dcb647b48..3ac524fe9a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ A Python-3 (CPython >= 3.5.0) Interpreter written in Rust :snake: :scream: [![Crates.io](https://img.shields.io/crates/v/rustpython)](https://crates.io/crates/rustpython) [![dependency status](https://deps.rs/crate/rustpython/0.1.1/status.svg)](https://deps.rs/crate/rustpython/0.1.1) [![WAPM package](https://wapm.io/package/rustpython/badge.svg?style=flat)](https://wapm.io/package/rustpython) +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/RustPython/RustPython) ## Usage From 7c4f6263bdc2f875c704a6ddb9d141f5e6a3b0dd Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 4 Feb 2020 00:08:24 +0000 Subject: [PATCH 3/4] Add GH actions badge --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ac524fe9a..fc399b983d 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ A Python-3 (CPython >= 3.5.0) Interpreter written in Rust :snake: :scream: [![Build Status](https://travis-ci.org/RustPython/RustPython.svg?branch=master)](https://travis-ci.org/RustPython/RustPython) [![Build Status](https://dev.azure.com/ryan0463/ryan/_apis/build/status/RustPython.RustPython?branchName=master)](https://dev.azure.com/ryan0463/ryan/_build/latest?definitionId=1&branchName=master) +[![Build Status](https://github.com/RustPython/RustPython/workflows/CI/badge.svg)](https://github.com/RustPython/RustPython/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/RustPython/RustPython/branch/master/graph/badge.svg)](https://codecov.io/gh/RustPython/RustPython) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Contributors](https://img.shields.io/github/contributors/RustPython/RustPython.svg)](https://github.com/RustPython/RustPython/graphs/contributors) @@ -15,7 +16,7 @@ A Python-3 (CPython >= 3.5.0) Interpreter written in Rust :snake: :scream: [![Crates.io](https://img.shields.io/crates/v/rustpython)](https://crates.io/crates/rustpython) [![dependency status](https://deps.rs/crate/rustpython/0.1.1/status.svg)](https://deps.rs/crate/rustpython/0.1.1) [![WAPM package](https://wapm.io/package/rustpython/badge.svg?style=flat)](https://wapm.io/package/rustpython) -[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/RustPython/RustPython) +[![Open in Gitpod](https://img.shields.io/static/v1?label=Open%20in&message=Gitpod&color=1aa6e4&logo=gitpod)](https://gitpod.io#https://github.com/RustPython/RustPython) ## Usage From 2c655c97949ef788315bd48a152aa8f045f81fbd Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 4 Feb 2020 16:47:48 -0600 Subject: [PATCH 4/4] Install rls in .gitpod.Dockerfile --- .gitpod.Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index fe57919463..546e02fd17 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -3,10 +3,11 @@ FROM gitpod/workspace-full USER gitpod # Update Rust to the latest version -RUN rm -rf ~/.rustup && ~/.cargo/bin/rustup update stable - -# Set up wasm-pack and wasm32-unknown-unknown for rustpython_wasm -RUN export PATH=$HOME/.cargo/bin:$PATH && \ +RUN rm -rf ~/.rustup && \ + export PATH=$HOME/.cargo/bin:$PATH && \ + rustup update stable && \ + rustup component add rls && \ + # Set up wasm-pack and wasm32-unknown-unknown for rustpython_wasm curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && \ rustup target add wasm32-unknown-unknown