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

[PATCH v2 1/4] Add Travis CI support

From
larsxschneider@gmail.com <larsxschneider@gmail.com>
Date
Oct 4, 2015, 18:06 UTC
Message-ID
<1443981977-64604-2-git-send-email-larsxschneider@gmail.com>
In-Reply-To
<1443981977-64604-1-git-send-email-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>

The tests are 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 | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..8a29dd6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,31 @@
+language: c
+
+os:
+  - linux
+  - osx
+
+compiler:
+  - clang
+  - gcc
+
+before_script:
+  - >
+    if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then
+      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
+    elif [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then
+      brew update
+      brew tap homebrew/binary
+      P4_SERVER_SHA=$(brew fetch --force perforce-server 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
+      P4_SHA=$(brew fetch --force perforce 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
+      sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$P4_SERVER_SHA\"/g" /usr/local/Library/Taps/homebrew/homebrew-binary/perforce-server.rb
+      sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$P4_SHA\"/g" /usr/local/Library/Taps/homebrew/homebrew-binary/perforce.rb
+      brew install git-lfs perforce-server perforce
+    fi
+
+install: make configure
-- 
2.5.1
Previous: larsxschneider@gmail.comNext: Johannes Schindelin
Message 2 of 16 in “Add Travis CI support”
  1. 0/4 Add Travis CI supportlarsxschneider@gmail.com, Oct 4, 2015
  2. 1/4 Add Travis CI supportlarsxschneider@gmail.com, Oct 4, 2015
  3. Johannes SchindelinOct 5, 2015
  4. 2/4 Add prereq to detect OS Xlarsxschneider@gmail.com, Oct 4, 2015
  5. Junio C HamanoOct 4, 2015
  6. Lars SchneiderOct 4, 2015
  7. 3/4 git-p4: Fix t9815 git-p4-submit-fail test case on OS Xlarsxschneider@gmail.com, Oct 4, 2015
  8. Junio C HamanoOct 4, 2015
  9. Lars SchneiderOct 4, 2015
  10. Pete WyckoffOct 4, 2015
  11. Torsten BögershausenOct 5, 2015
  12. 4/4 git-p4: Disable t9819 git-p4-case-folding test on OS Xlarsxschneider@gmail.com, Oct 4, 2015
  13. Junio C HamanoOct 4, 2015
  14. Lars SchneiderOct 4, 2015
  15. Junio C HamanoOct 4, 2015
  16. Johannes SchindelinOct 5, 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.