github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/circle.yml (about) 1 version: 2 2 jobs: 3 build: 4 docker: 5 - image: ubuntu:18.04 6 environment: 7 SOURCE_MAP_SUPPORT: false 8 working_directory: ~/go/src/github.com/gopherjs/gopherjs 9 steps: 10 - run: apt-get update && apt-get install -y sudo curl git python make g++ 11 - checkout 12 - 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 13 - run: nvm install 10.0.0 && nvm alias default 10.0.0 14 - run: cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.15.2.linux-amd64.tar.gz | sudo tar -xz 15 - run: echo 'export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin"' >> $BASH_ENV 16 - run: go get -t -d -v ./... 17 - run: go install -v 18 - run: npm install # Install our (dev) dependencies from package.json. 19 - run: cd node-syscall && ../node_modules/node-gyp/bin/node-gyp.js rebuild rebuild && mkdir -p ~/.node_libraries && cp build/Release/syscall.node ~/.node_libraries/syscall.node 20 21 - run: go generate github.com/gopherjs/gopherjs/compiler/prelude 22 - run: diff -u <(echo -n) <(git status --porcelain) 23 - run: diff -u <(echo -n) <(gofmt -d .) 24 - run: go vet . # Go package in root directory. 25 - run: for d in */; do echo ./$d...; done | grep -v ./doc | grep -v ./tests | grep -v ./node | xargs go vet # All subdirectories except "doc", "tests", "node*". 26 - run: diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js. 27 - run: gopherjs install -v net/http # Should build successfully (can't run tests, since only client is supported). 28 - run: ulimit -s 10000 && gopherjs test --minify -v --short github.com/gopherjs/gopherjs/tests/... $(go list std | grep -v -x -f .std_test_pkg_exclusions) 29 - run: go test -v -race ./... 30 - run: gopherjs test -v fmt # No minification should work.