Skip to content

Commit

Permalink
[DOCKER] Golang CI recipe. (apache#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 authored and tqchen committed Sep 23, 2018
1 parent 6292c78 commit 5ed52a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.ci_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ RUN bash /install/ubuntu_install_llvm.sh
# AutoTVM deps
COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh
RUN bash /install/ubuntu_install_redis.sh

# Golang environment
COPY install/ubuntu_install_golang.sh /install/ubuntu_install_golang.sh
RUN bash /install/ubuntu_install_golang.sh
6 changes: 6 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,9 @@ Here are some common use examples to perform CI tasks.
```bash
./docker/ci_build.sh ci_gpu make -C docs html
```

- build golang test suite.

```bash
./docker/build.sh ci_cpu make -C golang tests
```
4 changes: 4 additions & 0 deletions docker/install/ubuntu_install_golang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#install the necessary dependancies for golang build
apt-get update && apt-get install -y golang-go
apt-get update && apt-get install -y godoc
apt-get update && apt-get install -y golint

0 comments on commit 5ed52a5

Please sign in to comment.