Skip to content

Commit

Permalink
Try setting up GitPod (#2190)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vgrichina authored Mar 4, 2020
1 parent 4774eba commit f5e58be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f5e58be

Please sign in to comment.