Commit Graph

84 Commits

Author SHA1 Message Date
Luca Favatella
ea16da813c [Erlang] Plant CI for server (#5559)
* [Erlang] Address apparent reproducibily issue of sample

Spotted running `bin/erlang-petstore-server.sh` on d08d55d41 .

Apart from newlines, this is the opposite change of ec6248cbc .

* [Erlang] Perform basic testing of sample server on CI

* [Erlang] Install recent Erlang/OTP version

... in order to satisfy `jesse` compilation.

The error I faced is:
```
$ curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  766k  100  766k    0     0  1041k      0 --:--:-- --:--:-- --:--:-- 1041k
rebar 3.3.6 on Erlang/OTP R16B03 Erts 5.10.4
...
===> Verifying dependencies...
===> Fetching jesse ({git,"https://github.com/for-GET/jesse.git",
                                 {tag,"1.4.0"}})
===> Fetching jsx ({git,"https://github.com/talentdeficit/jsx.git",
                               {branch,"v2.8.0"}})
===> Skipping jsx (from {git,"git://github.com/talentdeficit/jsx.git",
                                    {tag,"2.8.0"}}) as an app of the same name has already been fetched
===> Compiling jsx
===> Compiling jesse
===> Compiling _build/default/lib/jesse/src/jesse_tests_util.erl failed
_build/default/lib/jesse/src/jesse_tests_util.erl:28: can't find include lib "common_test/include/ct.hrl"
_build/default/lib/jesse/src/jesse_tests_util.erl:55: undefined macro 'config/2'

_build/default/lib/jesse/src/jesse_tests_util.erl:24: function do_test/2 undefined

_build/default/lib/jesse/src/jesse_tests_util.erl:72: function test_schema/3 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:102: function get_path/2 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:105: function load_schema/1 is unused

[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:804)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:751)
	at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:313)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Erlang Test) on project ErlangServerTests: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
```

* [Erlang] Bump `jsx` dependency to latest stable version

* [Erlang] Disable sample server from CI until compilation works
2017-05-06 11:23:30 +08:00
wing328
e66566a971 use quiet model when building with maven 2017-04-24 16:36:32 +08:00
wing328
e45284806f add gradle cache 2017-03-21 21:48:40 +08:00
wing328
9d64e792a3 add ivy2 to cache sbt install 2017-03-13 00:52:10 +08:00
Arne Jørgensen
0b9aaad1c2 Build and upload Swagger Codegen CLI Docker image on release (#4912)
* Run mvn in batch-mode to be less verbose on download

* Build and upload Swagger Codegen CLI Docker image on release

* Ensure we only push master and tags to Docker Hub
2017-03-12 17:09:47 +08:00
wing328
8fb71b46db cache module directory to improve CI performance (#5025) 2017-03-11 16:59:17 +08:00
Bartek Kryza
0fb154e9a2 [Bash] Bash client script generator (#4541)
* Initial commit

* Remormatted petstore tests

* Added Bash codegen to main README.md

* Added bash to integration tests

* Fixed stdin detection in generated script

* Added back ruby module
2017-01-12 16:48:25 +08:00
wing328
4d4af71446 [CI] Add scripts to detect carriage return and tab (#4526)
* add script to detect carriage return

* add check for generator as well

* add fail fast to travis config

* remove tab

* move scripts under bin/utils

* remove carriage return

* move scripts to bin/utils
2017-01-09 18:29:41 +08:00
wing328
7827298e56 [Go] Fix CI tests (#3569)
* show path

* install go
2016-08-10 15:34:48 +08:00
wing328
c23b473636 [Go] update travis config to run Go Petstore tests (#3465)
* update pom to include go ci

* fix pom

* add gopath

* update GOPATH

* reorder pom client, server test sequence

* remove debug echo in travis
2016-07-27 16:19:23 +08:00
wing328
72be69d2ed Run petstore.swagger.io locally (#3411)
* update travis to run petstore server locally

* fix docker command

* update travis with addon

* add comment to travis.yml
2016-07-19 22:36:10 +08:00
Jason Gavris
4d9b5feb77 [Travis] Cache maven directory 2016-07-14 21:57:24 -04:00
wing328
661aa25c3d sudo to install virtualenv 2016-06-11 10:38:22 +08:00
wing328
1221a83504 add python ci 2016-06-11 10:35:50 +08:00
wing328
1e45af2fbc install typescript in travis ci 2016-05-20 14:15:04 +08:00
Tony Tam
94abbbdca7 fixed variable 2016-01-07 21:26:19 -08:00
Tony Tam
1b5a7be56d updated .travis 2016-01-07 21:11:00 -08:00
Tony Tam
309906ce3a updated travis file 2016-01-07 14:35:47 -08:00
Arne Jørgensen
b256ccb045 Document Java 8 as requirement. 2016-01-07 22:01:22 +01:00
Tony Tam
352b4ea923 travis 2016-01-07 11:19:29 -08:00
Tony Tam
4fe6381fcf updated travis 2016-01-07 11:03:24 -08:00
Tony Tam
151de79a98 formatting 2016-01-06 09:31:06 -08:00
Tony Tam
3d6a3e28c2 Update .travis.yml 2016-01-05 12:29:48 -08:00
Tony Tam
19beb90c27 Update .travis.yml 2016-01-05 12:23:38 -08:00
Tony Tam
69e7990fe1 updated to enable docker 2016-01-05 04:08:52 -08:00
Tony Tam
a57be19870 updated to install bundler 2016-01-05 03:59:55 -08:00
Tony Tam
43928a7726 enabled docker 2016-01-04 20:25:45 -08:00
Tony Tam
d8ceb8c648 enabled samples 2015-08-23 23:47:01 -07:00
Tony Tam
a2dc767559 Update .travis.yml 2015-03-25 20:57:48 -07:00
Tony Tam
a0876f24a3 added travis file 2014-09-19 14:38:00 -07:00
Tony Tam
c5ccc0a908 update to swagger 2.0 2014-08-29 09:47:17 -07:00
Tony Tam
6690b80b29 Update .travis.yml 2014-08-02 16:32:10 -07:00
Tony Tam
19bb97a725 updated travis to 2.10.4 2014-08-02 16:09:00 -07:00
Tony Tam
668059a2c4 added travis build file 2014-02-05 09:08:14 -08:00