From f5e58bea2163586a70aebead606567432bae7d3b Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Wed, 4 Mar 2020 15:42:24 -0800 Subject: [PATCH] Try setting up GitPod (#2190) * Try setting up GitPod * Try pre-building nearcore in Docker image * Remove rustup command (nightly should already be available) * Update location for nearcore prebuild * Fix the way cargo is executed in Dockerfile * Do cargo test as well when building docker image --- .gitpod.Dockerfile | 4 ++++ .gitpod.yml | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 00000000000..b94a2d6f7ec --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,4 @@ +FROM gitpod/workspace-full + +RUN git clone https://github.com/nearprotocol/nearcore.git --depth 1 /home/gitpod/nearcore +RUN bash -cl "cd /home/gitpod/nearcore && cargo build && cargo test" diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000000..5f2b2a330ea --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,8 @@ +tasks: + - init: cp -R /home/gitpod/nearcore/target ./target && cargo build && cargo test +image: + file: .gitpod.Dockerfile +github: + prebuilds: + addCheck: true + addComment: true