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