git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 1/3] Add Travis CI support

From
larsxschneider@gmail.com <larsxschneider@gmail.com>
Date
Oct 11, 2015, 17:55 UTC
Message-ID
<1444586102-82557-2-git-send-email-larsxschneider@gmail.com>
In-Reply-To
<1444586102-82557-1-git-send-email-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>

The tests are currently executed on "Ubuntu 12.04 LTS Server Edition 64 bit" and on "OS X Mavericks" using gcc and clang.

Perforce and Git-LFS are installed and therefore available for the respective tests.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
---
 .travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..25a7079
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,46 @@
+language: c
+
+os:
+  - linux
+  - osx
+
+compiler:
+  - clang
+  - gcc
+
+before_install:
+  - >
+    export GIT_TEST_OPTS=" --quiet";
+    case "${TRAVIS_OS_NAME:-linux}" in
+    linux)
+      wget -q https://package.perforce.com/perforce.pubkey -O - \
+        | sudo apt-key add -
+      echo 'deb http://package.perforce.com/apt/ubuntu precise release' \
+        | sudo tee -a /etc/apt/sources.list
+      wget -q https://packagecloud.io/gpg.key -O - | sudo apt-key add -
+      echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' \
+        | sudo tee -a /etc/apt/sources.list
+      sudo apt-get update -qq
+      sudo apt-get install -y apt-transport-https
+      sudo apt-get install perforce-server git-lfs
+      ;;
+    osx)
+      brew_force_set_latest_binary_hash () {
+        FORUMULA=$1
+        SHA=$(brew fetch --force $FORUMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
+        sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
+          /usr/local/Library/Taps/homebrew/homebrew-binary/$FORUMULA.rb
+      }
+      brew update
+      brew tap homebrew/binary
+      brew_force_set_latest_binary_hash perforce
+      brew_force_set_latest_binary_hash perforce-server
+      brew install git-lfs perforce-server perforce
+      ;;
+    esac
+
+install: make configure && ./configure
+
+before_script: make
+
+script: make --quiet test
-- 
2.5.1
Previous: larsxschneider@gmail.comNext: Eric Sunshine
Message 2 of 29 in “Add Travis CI support”
  1. 0/3 Add Travis CI supportlarsxschneider@gmail.com, Oct 11, 2015
  2. 1/3 Add Travis CI supportlarsxschneider@gmail.com, Oct 11, 2015
  3. Eric SunshineOct 11, 2015
  4. Lars SchneiderOct 12, 2015
  5. Sebastian SchuberthOct 12, 2015
  6. Junio C HamanoOct 12, 2015
  7. Sebastian SchuberthOct 12, 2015
  8. Lars SchneiderOct 12, 2015
  9. Sebastian SchuberthOct 12, 2015
  10. Matthieu MoyOct 12, 2015
  11. Lars SchneiderOct 12, 2015
  12. Sebastian SchuberthOct 12, 2015
  13. Lars SchneiderOct 12, 2015
  14. Sebastian SchuberthOct 12, 2015
  15. Matthieu MoyOct 12, 2015
  16. Lars SchneiderOct 14, 2015
  17. Matthieu MoyOct 15, 2015
  18. Jean-Noël AvilaOct 15, 2015
  19. Jean-Noël AvilaOct 13, 2015
  20. Lars SchneiderOct 15, 2015
  21. Matthieu MoyOct 15, 2015
  22. Lars SchneiderOct 15, 2015
  23. Johannes SchindelinOct 15, 2015
  24. Matthieu MoyOct 15, 2015
  25. 2/3 git-p4: Improve test case portability for t9815 git-p4-submit-faillarsxschneider@gmail.com, Oct 11, 2015
  26. 3/3 git-p4: Skip t9819 test case on case insensitive file systemslarsxschneider@gmail.com, Oct 11, 2015
  27. Luke DiamandOct 12, 2015
  28. Junio C HamanoOct 12, 2015
  29. Junio C HamanoOct 12, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.