Skip to content

Commit e43635d

Browse files
authored
ci: fix circle config for myitcv/gopherjs build (#1)
1 parent 0892b62 commit e43635d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

circle.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ machine:
55
SOURCE_MAP_SUPPORT: false
66

77
dependencies:
8-
pre:
8+
override:
99
- cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.10.1.linux-amd64.tar.gz | sudo tar -xz && sudo chmod a+w go/src/path/filepath
10-
post:
11-
- mv ./gopherjs $HOME/bin
1210
- npm install --global node-gyp
1311
- npm install # install our (dev) dependencies from package.json
1412
- cd node-syscall && node-gyp rebuild && mkdir -p ~/.node_libraries/ && cp build/Release/syscall.node ~/.node_libraries/syscall.node
13+
- mkdir -p $HOME/.gopath/src/github.com/gopherjs
14+
- mv $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.gopath/src/github.com/gopherjs/gopherjs
15+
- ln -s $HOME/.gopath/src/github.com/gopherjs/gopherjs $HOME/$CIRCLE_PROJECT_REPONAME
16+
- |
17+
echo 'export GOPATH=$HOME/.gopath:$GOPATH' >> ~/.circlerc
18+
echo 'export PATH=$HOME/.gopath/bin:$PATH' >> ~/.circlerc
19+
- go get -t -d -v github.com/gopherjs/gopherjs/...
20+
- go install github.com/gopherjs/gopherjs
21+
- which gopherjs
1522

1623
test:
1724
override:

0 commit comments

Comments
 (0)