@@ -11,43 +11,15 @@ export NODE_ENV=test
1111
1212if [ " $NODE_INDEX " = " 1" ]; then
1313 echo " Running node $NODE_INDEX ..."
14- java -version
1514
1615 sudo apt-get -y install cpanminus
1716
18- # install rust
19- curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
20- source " $HOME /.cargo/env"
21-
2217 echo " Testing perl"
2318 (cd samples/client/petstore/perl && /bin/bash ./test.bash)
2419
25- echo " Testing ruby"
26- (cd samples/client/petstore/ruby && mvn integration-test)
27- (cd samples/client/petstore/ruby-faraday && mvn integration-test)
28- (cd samples/client/petstore/ruby-httpx && mvn integration-test)
29- (cd samples/client/petstore/ruby-autoload && mvn integration-test)
30-
31- echo " Testing rust"
32- (cd samples/server/petstore/rust-axum && mvn integration-test)
3320
3421elif [ " $NODE_INDEX " = " 2" ]; then
35- echo " Running node $NODE_INDEX to test Go"
36- # install haskell
37- # curl -sSLk https://get.haskellstack.org/ | sh
38- # stack upgrade
39- # stack --version
40-
41- # install curl
42- # sudo apt-get -y build-dep libcurl4-gnutls-dev
43- # sudo apt-get -y install libcurl4-gnutls-dev
44-
45- # Install golang version 1.18
46- go version
47- sudo mkdir /usr/local/go1.18
48- wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18
49- export PATH=" /usr/local/go1.18/go/bin:$PATH "
50- go version
22+ echo " Running node $NODE_INDEX to test cpp-restsdk"
5123
5224 # install cpprestsdk
5325 sudo apt-get install libcpprest-dev
@@ -62,54 +34,15 @@ elif [ "$NODE_INDEX" = "3" ]; then
6234
6335 echo " Running node $NODE_INDEX ... "
6436
65- # # Install node@stable (for angular 6)
66- # set +e
67- # curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
68- # export NVM_DIR="/opt/circleci/.nvm"
69- # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
70- # #nvm install stable
71- # # install v16 instead of the latest stable version
72- # nvm install 18
73- # nvm alias default 18
74- # node --version
75-
76- # # Each step uses the same `$BASH_ENV`, so need to modify it
77- # echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
78- # echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
79-
80- # (cd samples/client/others/typescript-angular && mvn integration-test)
81- # (cd samples/client/petstore/typescript-angular-v12-provided-in-root && mvn integration-test)
82- # (cd samples/client/petstore/typescript-angular-v13-provided-in-root && mvn integration-test)
83- # (cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
84- # (cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
85- # (cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
86- # (cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
87- # (cd samples/client/petstore/typescript-angular-v18-provided-in-root && mvn integration-test)
88- # (cd samples/client/petstore/typescript-angular-v19-provided-in-root && mvn integration-test)
89- # (cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
90- # (cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
91- # (cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
92- # (cd samples/openapi3/client/petstore/typescript/tests/jquery && mvn integration-test)
93- # (cd samples/openapi3/client/petstore/typescript/builds/object_params && mvn integration-test)
94- # (cd samples/openapi3/client/petstore/typescript/tests/object_params && mvn integration-test)
95- # (cd samples/openapi3/client/petstore/typescript/builds/inversify && mvn integration-test)
96- # (cd samples/openapi3/client/petstore/typescript/tests/inversify && mvn integration-test)
97- # #(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
98- # (cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
99- # (cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
100- # (cd samples/openapi3/client/petstore/typescript/builds/nullable-enum && mvn integration-test)
101- # (cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
102- # (cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
103- # (cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
104- # (cd samples/client/petstore/typescript-fetch/tests/default && mvn integration-test)
105- # (cd samples/client/petstore/typescript-node/npm && mvn integration-test)
106- # (cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
107- # (cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
108- # (cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
109- # (cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test)
37+ echo " Testing ruby"
38+ (cd samples/client/petstore/ruby && mvn integration-test)
39+ (cd samples/client/petstore/ruby-faraday && mvn integration-test)
40+ (cd samples/client/petstore/ruby-httpx && mvn integration-test)
41+ (cd samples/client/petstore/ruby-autoload && mvn integration-test)
11042
11143else
11244 echo " Running node $NODE_INDEX ..."
11345 java -version
46+ ./mvnw clean install
11447
11548fi
0 commit comments