{"thread":{"id":"40899","subject":"[PATCH v8] Add Travis CI support","startedAt":"2015-11-27T09:23:26Z","lastAt":"2015-12-02T00:56:58Z","messageCount":7,"participants":["larsxschneider@gmail.com","Jeff King","Stefan Beller","Lars Schneider"],"isPatch":true,"patchVersion":8,"patchTotal":null},"messages":[{"id":"273793","messageId":"1448616207-45035-1-git-send-email-larsxschneider@gmail.com","threadId":"40899","inReplyTo":null,"subject":"[PATCH v8] Add Travis CI support","fromName":"","fromEmail":"larsxschneider@gmail.com","sentAt":"2015-11-27T09:23:26Z","receivedAt":"2015-11-27T09:23:26Z","isPatch":true,"sender":{"key":"larsxschneider@gmail.com","avatar":"https://avatars.githubusercontent.com/u/477434?v=4"},"body":"From: Lars Schneider <larsxschneider@gmail.com>\n\ndiff to v7:\n* remove NO_GETTEXT patch and install gettext on OS X to compile with\n  no additional flags (thanks Torsten)\n* fix P4 version (15.2 is the latest one available)\n\nThanks,\nLars\n\nLars Schneider (1):\n  Add Travis CI support\n\n .travis.yml | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 91 insertions(+)\n create mode 100644 .travis.yml\n\n--\n2.5.1\n"},{"id":"273794","messageId":"1448616207-45035-2-git-send-email-larsxschneider@gmail.com","threadId":"40899","inReplyTo":"1448616207-45035-1-git-send-email-larsxschneider@gmail.com","subject":"[PATCH v8] Add Travis CI support","fromName":"","fromEmail":"larsxschneider@gmail.com","sentAt":"2015-11-27T09:23:27Z","receivedAt":"2015-11-27T09:23:27Z","isPatch":true,"sender":{"key":"larsxschneider@gmail.com","avatar":"https://avatars.githubusercontent.com/u/477434?v=4"},"body":"From: Lars Schneider <larsxschneider@gmail.com>\n\nThe tests are currently executed on \"Ubuntu 12.04 LTS Server Edition\n64 bit\" and on \"OS X Mavericks\" using gcc and clang.\n\nPerforce and Git-LFS are installed and therefore available for the\nrespective tests.\n\nSigned-off-by: Lars Schneider <larsxschneider@gmail.com>\n---\n .travis.yml | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 91 insertions(+)\n create mode 100644 .travis.yml\n\ndiff --git a/.travis.yml b/.travis.yml\nnew file mode 100644\nindex 0000000..c3bf9c6\n--- /dev/null\n+++ b/.travis.yml\n@@ -0,0 +1,91 @@\n+language: c\n+\n+os:\n+  - linux\n+  - osx\n+\n+compiler:\n+  - clang\n+  - gcc\n+\n+addons:\n+  apt:\n+    packages:\n+    - language-pack-is\n+\n+env:\n+  global:\n+    - P4_VERSION=\"15.2\"\n+    - GIT_LFS_VERSION=\"1.1.0\"\n+    - DEFAULT_TEST_TARGET=prove\n+    - GIT_PROVE_OPTS=\"--timer --jobs 3\"\n+    - GIT_TEST_OPTS=\"--verbose --tee\"\n+    - CFLAGS=\"-g -O2 -Wall -Werror\"\n+    - GIT_TEST_CLONE_2GB=YesPlease\n+    # t9810 occasionally fails on Travis CI OS X\n+    # t9816 occasionally fails with \"TAP out of sequence errors\" on Travis CI OS X\n+    - GIT_SKIP_TESTS=\"t9810 t9816\"\n+\n+before_install:\n+  - >\n+    case \"${TRAVIS_OS_NAME:-linux}\" in\n+    linux)\n+      mkdir --parents custom/p4\n+      pushd custom/p4\n+        wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4d\n+        wget --quiet http://filehost.perforce.com/perforce/r$P4_VERSION/bin.linux26x86_64/p4\n+        chmod u+x p4d\n+        chmod u+x p4\n+        export PATH=\"$(pwd):$PATH\"\n+      popd\n+      mkdir --parents custom/git-lfs\n+      pushd custom/git-lfs\n+        wget --quiet https://github.com/github/git-lfs/releases/download/v$GIT_LFS_VERSION/git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz\n+        tar --extract --gunzip --file \"git-lfs-linux-amd64-$GIT_LFS_VERSION.tar.gz\"\n+        cp git-lfs-$GIT_LFS_VERSION/git-lfs .\n+        export PATH=\"$(pwd):$PATH\"\n+      popd\n+      ;;\n+    osx)\n+      brew_force_set_latest_binary_hash () {\n+        FORMULA=$1\n+        SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)\n+        sed -E -i.bak \"s/sha256 \\\"[0-9a-f]{64}\\\"/sha256 \\\"$SHA\\\"/g\" \\\n+          /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb\n+      }\n+      brew update --quiet\n+      brew tap homebrew/binary --quiet\n+      brew_force_set_latest_binary_hash perforce\n+      brew_force_set_latest_binary_hash perforce-server\n+      brew install git-lfs perforce-server perforce gettext\n+      brew link --force gettext\n+      ;;\n+    esac;\n+    echo \"$(tput setaf 6)Perforce Server Version$(tput sgr0)\";\n+    p4d -V | grep Rev.;\n+    echo \"$(tput setaf 6)Perforce Client Version$(tput sgr0)\";\n+    p4 -V | grep Rev.;\n+    echo \"$(tput setaf 6)Git-LFS Version$(tput sgr0)\";\n+    git-lfs version;\n+\n+before_script: make --jobs=2\n+\n+script: make --quiet test\n+\n+after_failure:\n+  - >\n+    : '<-- Click here to see detailed test output!                                                        ';\n+    for TEST_EXIT in t/test-results/*.exit;\n+    do\n+      if [ \"$(cat \"$TEST_EXIT\")\" != \"0\" ];\n+      then\n+        TEST_OUT=\"${TEST_EXIT%exit}out\";\n+        echo \"------------------------------------------------------------------------\";\n+        echo \"$(tput setaf 1)${TEST_OUT}...$(tput sgr0)\";\n+        echo \"------------------------------------------------------------------------\";\n+        cat \"${TEST_OUT}\";\n+      fi;\n+    done;\n+\n+notifications:\n+  email: false\n-- \n2.5.1\n"},{"id":"273814","messageId":"20151128171223.GD27264@sigill.intra.peff.net","threadId":"40899","inReplyTo":"1448616207-45035-1-git-send-email-larsxschneider@gmail.com","subject":"Re: [PATCH v8] Add Travis CI support","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2015-11-28T17:12:23Z","receivedAt":"2015-11-28T17:12:23Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Nov 27, 2015 at 10:23:26AM +0100, larsxschneider@gmail.com wrote:\n\n> From: Lars Schneider <larsxschneider@gmail.com>\n> \n> diff to v7:\n> * remove NO_GETTEXT patch and install gettext on OS X to compile with\n>   no additional flags (thanks Torsten)\n> * fix P4 version (15.2 is the latest one available)\n\nThanks. I don't have any other comments on this one. I guess the next\nstep is for me to get git/git signed up for Travis, and then merging\nthis to 'master' will have the desired effect.\n\n-Peff\n"},{"id":"273833","messageId":"CAGZ79kaOFsm+GcqzgLQSbY-VFnQsbEJfg+RSjUBozXeE-qLN4g@mail.gmail.com","threadId":"40899","inReplyTo":"20151128171223.GD27264@sigill.intra.peff.net","subject":"Re: [PATCH v8] Add Travis CI support","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2015-11-30T19:04:13Z","receivedAt":"2015-11-30T19:04:13Z","isPatch":true,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Sat, Nov 28, 2015 at 9:12 AM, Jeff King <peff@peff.net> wrote:\n> On Fri, Nov 27, 2015 at 10:23:26AM +0100, larsxschneider@gmail.com wrote:\n>\n>> From: Lars Schneider <larsxschneider@gmail.com>\n>>\n>> diff to v7:\n>> * remove NO_GETTEXT patch and install gettext on OS X to compile with\n>>   no additional flags (thanks Torsten)\n>> * fix P4 version (15.2 is the latest one available)\n>\n> Thanks. I don't have any other comments on this one. I guess the next\n> step is for me to get git/git signed up for Travis, and then merging\n> this to 'master' will have the desired effect.\n\nI think you can merge it even before signing up for travis. Then it\nwould be in the repository\nand any fork (say github.com/stefanbeller/git) could enable it for\nthemselves even faster that you\ncould for the main repository :)\n\n>\n> -Peff\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"273855","messageId":"A529A168-CC08-4F8F-B46D-3DF5EAA8EBB9@gmail.com","threadId":"40899","inReplyTo":"20151128171223.GD27264@sigill.intra.peff.net","subject":"Re: [PATCH v8] Add Travis CI support","fromName":"Lars Schneider","fromEmail":"larsxschneider@gmail.com","sentAt":"2015-12-01T08:43:45Z","receivedAt":"2015-12-01T08:43:45Z","isPatch":true,"sender":{"key":"larsxschneider@gmail.com","avatar":"https://avatars.githubusercontent.com/u/477434?v=4"},"body":"\nOn 28 Nov 2015, at 18:12, Jeff King <peff@peff.net> wrote:\n\n> On Fri, Nov 27, 2015 at 10:23:26AM +0100, larsxschneider@gmail.com wrote:\n> \n>> From: Lars Schneider <larsxschneider@gmail.com>\n>> \n>> diff to v7:\n>> * remove NO_GETTEXT patch and install gettext on OS X to compile with\n>>  no additional flags (thanks Torsten)\n>> * fix P4 version (15.2 is the latest one available)\n> \n> Thanks. I don't have any other comments on this one. I guess the next\n> step is for me to get git/git signed up for Travis, and then merging\n> this to 'master' will have the desired effect.\n\nThanks! You're right, signing up git/git for Travis should do it. Right now it is configured to build all branches on git/git that contain a travis.yml. That means if you merge it to pu or next then we should see builds already.\n\nCheers,\nLars"},{"id":"273889","messageId":"20151202004524.GB28197@sigill.intra.peff.net","threadId":"40899","inReplyTo":"A529A168-CC08-4F8F-B46D-3DF5EAA8EBB9@gmail.com","subject":"Re: [PATCH v8] Add Travis CI support","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2015-12-02T00:45:24Z","receivedAt":"2015-12-02T00:45:24Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Dec 01, 2015 at 09:43:45AM +0100, Lars Schneider wrote:\n\n> > Thanks. I don't have any other comments on this one. I guess the next\n> > step is for me to get git/git signed up for Travis, and then merging\n> > this to 'master' will have the desired effect.\n> \n> Thanks! You're right, signing up git/git for Travis should do it.\n> Right now it is configured to build all branches on git/git that\n> contain a travis.yml. That means if you merge it to pu or next then we\n> should see builds already.\n\nI merged to 'pu', and signed up peff/git, and got a build. Incidentally,\nsomething in pu causes a bunch of tests to fail on OS X (but not Linux).\n:)\n\n-Peff\n"},{"id":"273892","messageId":"CAGZ79kYD4XU94pG+K_SR07oP1knukpkvPWZANp_t1tWxYuTEOQ@mail.gmail.com","threadId":"40899","inReplyTo":"20151202004524.GB28197@sigill.intra.peff.net","subject":"Re: [PATCH v8] Add Travis CI support","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2015-12-02T00:56:58Z","receivedAt":"2015-12-02T00:56:58Z","isPatch":true,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Tue, Dec 1, 2015 at 4:45 PM, Jeff King <peff@peff.net> wrote:\n> On Tue, Dec 01, 2015 at 09:43:45AM +0100, Lars Schneider wrote:\n>\n>> > Thanks. I don't have any other comments on this one. I guess the next\n>> > step is for me to get git/git signed up for Travis, and then merging\n>> > this to 'master' will have the desired effect.\n>>\n>> Thanks! You're right, signing up git/git for Travis should do it.\n>> Right now it is configured to build all branches on git/git that\n>> contain a travis.yml. That means if you merge it to pu or next then we\n>> should see builds already.\n>\n> I merged to 'pu', and signed up peff/git, and got a build. Incidentally,\n> something in pu causes a bunch of tests to fail on OS X (but not Linux).\n> :)\n>\n\n:)\n\nAs I currently maintain a the regular coverity scan and just\nremembered that it integrates with travis[1], we may want to look\ninto that further, too.\n\n[1] https://scan.coverity.com/travis_ci\n\n\n> -Peff\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"}]}