Skip to content
Permalink
Browse files

[R] Add petstore integration tests to CI (#2354)

* add r petstore test

* run test in node 1

* fix r bash test

* fix typo

* fix permission error

* fix r installation error

* use diff r repo

* install latest r

* install curl

* use sudo for apt-get

* add no manual

* add sudo install

* better caching

* export env

* update lib location

* create lib dir

* update r lib dir
  • Loading branch information...
wing328 committed Mar 11, 2019
1 parent b0aac25 commit 3ba6d8226e4e82e903bb9846d2f95b86fabec629
Showing with 152 additions and 1,374 deletions.
  1. +14 −3 CI/circle_parallel.sh
  2. +2 −0 circle.yml
  3. +1 −0 pom.xml
  4. +0 −12 samples/client/petstore/R/old_client/DESCRIPTION
  5. +0 −11 samples/client/petstore/R/old_client/NAMESPACE
  6. +0 −93 samples/client/petstore/R/old_client/R/ApiResponse.r
  7. +0 −85 samples/client/petstore/R/old_client/R/Category.r
  8. +0 −116 samples/client/petstore/R/old_client/R/Order.r
  9. +0 −154 samples/client/petstore/R/old_client/R/PetApi.r
  10. +0 −82 samples/client/petstore/R/old_client/R/StoreApi.r
  11. +0 −85 samples/client/petstore/R/old_client/R/Tag.r
  12. +0 −133 samples/client/petstore/R/old_client/R/User.r
  13. +0 −144 samples/client/petstore/R/old_client/R/UserApi.r
  14. +0 −120 samples/client/petstore/R/old_client/R/pet.R
  15. +0 −95 samples/client/petstore/R/old_client/R/petstore.R
  16. +0 −33 samples/client/petstore/R/old_client/README.md
  17. +0 −52 samples/client/petstore/R/old_client/git_push.sh
  18. +0 −40 samples/client/petstore/R/old_client/man/Element.Rd
  19. +0 −14 samples/client/petstore/R/old_client/man/Pet.Rd
  20. +0 −14 samples/client/petstore/R/old_client/man/PetStoreClient.Rd
  21. +0 −40 samples/client/petstore/R/old_client/man/Response.Rd
  22. +0 −21 samples/client/petstore/R/old_client/petstore.Rproj
  23. +0 −4 samples/client/petstore/R/old_client/tests/testthat.R
  24. +0 −23 samples/client/petstore/R/old_client/tests/testthat/test-petstore.R
  25. +46 −0 samples/client/petstore/R/pom.xml
  26. +21 −0 samples/client/petstore/R/test_petstore.bash
  27. +68 −0 samples/client/petstore/R/tests/testthat/test_petstore.R
@@ -20,12 +20,23 @@ elif [ "$NODE_INDEX" = "2" ]; then
java -version
./bin/utils/ensure-up-to-date
fi
elif [ "$NODE_INDEX" = "3" ]; then
#elif [ "$NODE_INDEX" = "3" ]; then
echo "Running node $NODE_INDEX to test haskell"
# install haskell
url -sSL https://get.haskellstack.org/ | sh
curl -sSL https://get.haskellstack.org/ | sh
stack upgrade
stack --version:w
stack --version
# install r
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install r-base
R --version
# install curl
sudo apt-get -y build-dep libcurl4-gnutls-dev
sudo apt-get -y install libcurl4-gnutls-dev
# run integration tests
mvn --quiet verify -Psamples.misc
else
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
@@ -84,6 +84,8 @@ jobs:
- ~/.cache/bower
- ".git"
- ~/.stack
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
- ~/R
# Teardown
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
# Save test results
@@ -1250,6 +1250,7 @@
</activation>
<modules>
<!-- clients -->
<module>samples/client/petstore/R</module>
<module>samples/client/petstore/haskell-http-client</module>
<!-- servers -->
<module>samples/server/petstore/haskell-servant</module>

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 3ba6d82

Please sign in to comment.
You can’t perform that action at this time.