Skip to content

Commit 1e1ddc5

Browse files
committed
ci: upgrade to CircleCI 2
1 parent e14987c commit 1e1ddc5

File tree

2 files changed

+157
-134
lines changed

2 files changed

+157
-134
lines changed

.circleci/config.yml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: /go/src/github.com/gopherjs/gopherjs
5+
docker:
6+
- image: circleci/golang:1.10
7+
8+
environment:
9+
SOURCE_MAP_SUPPORT: false
10+
11+
steps:
12+
- run: |
13+
git clone https://github.com/creationix/nvm.git $HOME/.nvm
14+
cd $HOME/.nvm && git checkout v0.33.9
15+
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
16+
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
17+
18+
- run: |
19+
nvm install 6.2.2 node
20+
nvm alias default 6.2.2
21+
22+
- checkout
23+
24+
- run: |
25+
node --version
26+
go version
27+
go env
28+
nproc --all
29+
30+
- run: |
31+
npm install --global node-gyp
32+
cd node-syscall && node-gyp rebuild && mkdir -p $HOME/.node_libraries/ && cp build/Release/syscall.node $HOME/.node_libraries/syscall.node
33+
34+
- run: |
35+
go get -t ./...
36+
go install github.com/gopherjs/gopherjs
37+
38+
- run:
39+
no_output_timeout: 30m
40+
command: |
41+
diff -u <(echo -n) <(gofmt -d .)
42+
go tool vet *.go # Go package in root directory.
43+
for d in */; do echo $d; done | grep -v tests/ | grep -v third_party/ | xargs go tool vet # All subdirectories except "tests", "third_party".
44+
diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js.
45+
gopherjs install -v net/http # Should build successfully (can't run tests, since only client is supported).
46+
ulimit -s 10000 && gopherjs test --minify -v --short \
47+
github.com/gopherjs/gopherjs/tests \
48+
github.com/gopherjs/gopherjs/tests/main \
49+
github.com/gopherjs/gopherjs/js \
50+
archive/tar \
51+
archive/zip \
52+
bufio \
53+
bytes \
54+
compress/bzip2 \
55+
compress/flate \
56+
compress/gzip \
57+
compress/lzw \
58+
compress/zlib \
59+
container/heap \
60+
container/list \
61+
container/ring \
62+
crypto/aes \
63+
crypto/cipher \
64+
crypto/des \
65+
crypto/dsa \
66+
crypto/ecdsa \
67+
crypto/elliptic \
68+
crypto/hmac \
69+
crypto/md5 \
70+
crypto/rand \
71+
crypto/rc4 \
72+
crypto/rsa \
73+
crypto/sha1 \
74+
crypto/sha256 \
75+
crypto/sha512 \
76+
crypto/subtle \
77+
crypto/x509 \
78+
database/sql \
79+
database/sql/driver \
80+
debug/dwarf \
81+
debug/elf \
82+
debug/macho \
83+
debug/pe \
84+
encoding/ascii85 \
85+
encoding/asn1 \
86+
encoding/base32 \
87+
encoding/base64 \
88+
encoding/binary \
89+
encoding/csv \
90+
encoding/gob \
91+
encoding/hex \
92+
encoding/json \
93+
encoding/pem \
94+
encoding/xml \
95+
errors \
96+
expvar \
97+
flag \
98+
fmt \
99+
go/ast \
100+
go/constant \
101+
go/doc \
102+
go/format \
103+
go/parser \
104+
go/printer \
105+
go/scanner \
106+
go/token \
107+
hash/adler32 \
108+
hash/crc32 \
109+
hash/crc64 \
110+
hash/fnv \
111+
html \
112+
html/template \
113+
image \
114+
image/color \
115+
image/draw \
116+
image/gif \
117+
image/jpeg \
118+
image/png \
119+
index/suffixarray \
120+
io \
121+
io/ioutil \
122+
math \
123+
math/big \
124+
math/bits \
125+
math/cmplx \
126+
math/rand \
127+
mime \
128+
mime/multipart \
129+
mime/quotedprintable \
130+
net/http/cookiejar \
131+
net/http/fcgi \
132+
net/mail \
133+
net/rpc/jsonrpc \
134+
net/textproto \
135+
net/url \
136+
os/user \
137+
path \
138+
path/filepath \
139+
reflect \
140+
regexp \
141+
regexp/syntax \
142+
sort \
143+
strconv \
144+
strings \
145+
sync \
146+
sync/atomic \
147+
testing/quick \
148+
text/scanner \
149+
text/tabwriter \
150+
text/template \
151+
text/template/parse \
152+
time \
153+
unicode \
154+
unicode/utf16 \
155+
unicode/utf8
156+
go test -v -race ./...
157+
gopherjs test -v fmt # No minification should work.

circle.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)