File tree Expand file tree Collapse file tree
samples/server/petstore/rust-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 - $HOME/samples/client/petstore/typescript-fetch/npm/with-npm-version/typings
2626 - $HOME/samples/client/petstore/typescript-angular/node_modules
2727 - $HOME/samples/client/petstore/typescript-angular/typings
28+ - $HOME/samples/server/petstore/rust-server/target
2829 - $HOME/perl5
30+ - $HOME/.cargo
2931
3032services :
3133 - docker
@@ -41,7 +43,7 @@ before_install:
4143 - stack upgrade
4244 - stack --version
4345 # install rust
44- - curl -sSf https://static.rust-lang.org/ rustup.sh | sh
46+ - curl https://sh. rustup.rs -sSf | sh -s -- -y -v
4547 # required when sudo: required for the Ruby petstore tests
4648 - gem install bundler
4749 - npm install -g typescript
@@ -83,7 +85,7 @@ install:
8385 # Add Godeps dependencies to GOPATH and PATH
8486 - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
8587 - export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
86- - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
88+ - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$HOME/.cargo/bin:$ PATH"
8789 - go version
8890
8991script :
Original file line number Diff line number Diff line change 921921 <module >samples/client/petstore/typescript-angular-v4.3/npm</module >
922922 <!-- <module>samples/client/petstore/bash</module>-->
923923 <module >samples/client/petstore/ruby</module >
924+ <module >samples/server/petstore/rust-server</module >
924925 </modules >
925926 </profile >
926927 </profiles >
Original file line number Diff line number Diff line change 1+ <project >
2+ <modelVersion >4.0.0</modelVersion >
3+ <groupId >org.openapitools</groupId >
4+ <artifactId >RustServerTests</artifactId >
5+ <packaging >pom</packaging >
6+ <version >1.0-SNAPSHOT</version >
7+ <name >Rust Petstore Sample</name >
8+ <build >
9+ <plugins >
10+ <plugin >
11+ <artifactId >maven-dependency-plugin</artifactId >
12+ <executions >
13+ <execution >
14+ <phase >package</phase >
15+ <goals >
16+ <goal >copy-dependencies</goal >
17+ </goals >
18+ <configuration >
19+ <outputDirectory >${project.build.directory} </outputDirectory >
20+ </configuration >
21+ </execution >
22+ </executions >
23+ </plugin >
24+ <plugin >
25+ <groupId >org.codehaus.mojo</groupId >
26+ <artifactId >exec-maven-plugin</artifactId >
27+ <version >1.2.1</version >
28+ <executions >
29+ <execution >
30+ <id >bundle-test</id >
31+ <phase >integration-test</phase >
32+ <goals >
33+ <goal >exec</goal >
34+ </goals >
35+ <configuration >
36+ <executable >cargo</executable >
37+ <arguments >
38+ <argument >test</argument >
39+ </arguments >
40+ </configuration >
41+ </execution >
42+ </executions >
43+ </plugin >
44+ </plugins >
45+ </build >
46+ </project >
You can’t perform that action at this time.
0 commit comments