File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
docker :
5
5
- image : ubuntu:18.04
6
6
environment :
7
- SOURCE_MAP_SUPPORT : false
7
+ SOURCE_MAP_SUPPORT : true
8
8
GO111MODULE : " off" # Until issue #855 is fixed, we operate in GOPATH mode.
9
9
working_directory : ~/go/src/github.com/gopherjs/gopherjs
10
10
steps :
11
11
- run : apt-get update && apt-get install -y sudo curl git python make g++
12
12
- checkout
13
13
- 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
14
14
- 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
15
17
- run : cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.16.linux-amd64.tar.gz | sudo tar -xz
16
18
- run : echo 'export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin"' >> $BASH_ENV
17
19
- run : go get -t -d -v ./...
18
20
- run : go install -v
19
21
- run : npm install # Install our (dev) dependencies from package.json.
22
+ - run : npm install --global source-map-support # Required by standard library tests.
20
23
- 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
23
25
- run : go generate github.com/gopherjs/gopherjs/compiler/prelude
24
26
- run : diff -u <(echo -n) <(git status --porcelain)
25
27
- run : diff -u <(echo -n) <(gofmt -d .)
You can’t perform that action at this time.
0 commit comments