Skip to content

Commit 3f703aa

Browse files
committed
Enable source map support when running tests on CircleCI.
Several `reflect` tests rely on it to execute correctly.
1 parent c25710c commit 3f703aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

circle.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ jobs:
44
docker:
55
- image: ubuntu:18.04
66
environment:
7-
SOURCE_MAP_SUPPORT: false
7+
SOURCE_MAP_SUPPORT: true
88
GO111MODULE: "off" # Until issue #855 is fixed, we operate in GOPATH mode.
99
working_directory: ~/go/src/github.com/gopherjs/gopherjs
1010
steps:
1111
- run: apt-get update && apt-get install -y sudo curl git python make g++
1212
- checkout
1313
- run: git clone https://github.com/creationix/nvm $HOME/.nvm && cd $HOME/.nvm && git checkout v0.33.9 && echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
1414
- run: nvm install 10.0.0 && nvm alias default 10.0.0
15+
- run: echo export "NODE_PATH='$(npm root --global)'" >> $BASH_ENV # Make nodejs able to require globally installed modules from any working path.
16+
- run: env
1517
- run: cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.16.linux-amd64.tar.gz | sudo tar -xz
1618
- run: echo 'export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin"' >> $BASH_ENV
1719
- run: go get -t -d -v ./...
1820
- run: go install -v
1921
- run: npm install # Install our (dev) dependencies from package.json.
22+
- run: npm install --global source-map-support # Required by standard library tests.
2023
- run: npm install --global node-gyp@5.1.1
21-
- run: cd node-syscall && node-gyp rebuild && mkdir -p ~/.node_libraries && cp build/Release/syscall.node ~/.node_libraries/syscall.node
22-
24+
- run: cd node-syscall && node-gyp rebuild && mkdir -p $NODE_PATH && cp build/Release/syscall.node $NODE_PATH/syscall.node
2325
- run: go generate github.com/gopherjs/gopherjs/compiler/prelude
2426
- run: diff -u <(echo -n) <(git status --porcelain)
2527
- run: diff -u <(echo -n) <(gofmt -d .)

0 commit comments

Comments
 (0)