Skip to content

Commit

Permalink
[DOCKER][GOLANG] fix golang version. (apache#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 authored and AWS Neo committed Feb 20, 2019
1 parent 89516f5 commit 89601c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ Here are some common use examples to perform CI tasks.
- build golang test suite.

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

set -e

export LD_LIBRARY_PATH=lib:$LD_LIBRARY_PATH

tvm_root="$(git rev-parse --show-toplevel)"
export PYTHONPATH="$tvm_root/python":"$tvm_root/nnvm/python":"$tvm_root/topi/python"

# Golang tests
make -C golang tests

0 comments on commit 89601c6

Please sign in to comment.