aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2018-01-23 16:19:25 -0800
committerBo Yang <paulyang1211@gmail.com>2018-01-23 16:19:25 -0800
commita7bfea9b210f92f3a0b6a5d1818413d3db422253 (patch)
tree2b3de5db540cc3aa5b6f969180ee5d8d2cdb16e1
parent99002ae47a3f88f64ff44dbd80452360e0e5fbc4 (diff)
downloadprotobuf-a7bfea9b210f92f3a0b6a5d1818413d3db422253.tar.gz
protobuf-a7bfea9b210f92f3a0b6a5d1818413d3db422253.tar.bz2
protobuf-a7bfea9b210f92f3a0b6a5d1818413d3db422253.zip
Initialize .travis.yml
-rw-r--r--.gitignore182
-rw-r--r--.gitmodules9
-rw-r--r--.travis.yml75
m---------multibuild0
m---------protobuf8
5 files changed, 89 insertions, 185 deletions
diff --git a/.gitignore b/.gitignore
index af88e226..e69de29b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,182 +0,0 @@
-# autogen.sh-generated files
-Makefile.in
-src/Makefile.in
-config.guess
-config.h.in
-config.sub
-configure
-depcomp
-install-sh
-ltmain.sh
-missing
-
-aclocal.m4
-m4/libtool.m4
-m4/ltoptions.m4
-m4/ltsugar.m4
-m4/ltversion.m4
-m4/lt~obsolete.m4
-autom4te.cache
-
-# downloaded files
-gmock
-
-# in-tree configure-generated files
-Makefile
-src/Makefile
-/config.h
-config.log
-config.status
-
-libtool
-protobuf-lite.pc
-protobuf.pc
-.deps
-stamp-h1
-
-# in-tree build products
-*.o
-*.lo
-*.la
-src/.libs
-*.so
-
-.dirstamp
-
-any_test.pb.*
-map*unittest.pb.*
-unittest*.pb.*
-cpp_test*.pb.*
-src/google/protobuf/compiler/js/well_known_types_embed.cc
-src/google/protobuf/util/**/*.pb.cc
-src/google/protobuf/util/**/*.pb.h
-
-*.pyc
-*.egg-info
-*_pb2.py
-python/*.egg
-python/.eggs/
-python/.tox
-python/build/
-python/google/protobuf/compiler/
-python/google/protobuf/util/
-
-src/js_embed
-src/protoc
-src/unittest_proto_middleman
-
-# vim generated
-*.swp
-
-# Generated test scaffolding
-src/no_warning_test.cc
-src/no-warning-test
-src/protobuf*-test
-src/test_plugin
-src/testzip.*
-src/zcg*zip
-ar-lib
-
-test-driver
-compile
-
-src/**/*.log
-src/**/*.trs
-
-# JavaBuild output.
-java/core/target
-java/util/target
-javanano/target
-java/.idea
-java/**/*.iml
-
-# Windows native output.
-cmake/build
-build_msvc
-
-# NuGet packages: we want the repository configuration, but not the
-# packages themselves.
-/csharp/src/packages/*/
-
-# OS X's Finder creates these for state about opened windows/etc.
-**/.DS_Store
-
-# Cocoapods artifacts
-# Podfile.lock and the workspace file are tracked, to ease deleting them. That's
-# needed to trigger "pod install" to rerun the preinstall commands.
-Pods/
-
-# Comformance test output
-conformance/.libs/
-conformance/com/
-conformance/conformance-cpp
-conformance/conformance-csharp
-conformance/conformance-java
-conformance/conformance-objc
-conformance/conformance-test-runner
-conformance/conformance.pb.cc
-conformance/conformance.pb.h
-conformance/Conformance.pbobjc.h
-conformance/Conformance.pbobjc.m
-conformance/conformance_pb.js
-conformance/conformance_pb.rb
-conformance/failing_tests.txt
-conformance/google/
-conformance/google-protobuf/
-conformance/javac_middleman
-conformance/lite/
-conformance/nonexistent_tests.txt
-conformance/protoc_middleman
-conformance/succeeding_tests.txt
-conformance/Conformance/
-conformance/GPBMetadata/
-conformance/Google/
-conformance/Protobuf_test_messages/
-conformance/conformance-php
-conformance/conformance-php-c
-conformance/*.class
-
-# php test output
-composer.lock
-php/tests/generated/
-php/tests/old_protoc
-php/tests/protobuf/
-php/ext/google/protobuf/.libs/
-php/ext/google/protobuf/Makefile.fragments
-php/ext/google/protobuf/Makefile.global
-php/ext/google/protobuf/Makefile.objects
-php/ext/google/protobuf/acinclude.m4
-php/ext/google/protobuf/build/
-php/ext/google/protobuf/config.h
-php/ext/google/protobuf/config.nice
-php/ext/google/protobuf/configure.in
-php/ext/google/protobuf/mkinstalldirs
-php/ext/google/protobuf/run-tests.php
-vendor/
-
-# JavaScript artifacts
-js/commonjs_out/
-js/compatibility_tests/v3.0.0/commonjs_out*
-js/compatibility_tests/v3.0.0/protoc
-js/compatibility_tests/v3.0.0/testproto_libs1.js
-js/compatibility_tests/v3.0.0/testproto_libs1_new.js
-js/compatibility_tests/v3.0.0/testproto_libs2.js
-js/compatibility_tests/v3.0.0/testproto_libs2_new.js
-js/deps.js
-js/google-protobuf.js
-js/google/
-js/node_modules/
-js/testproto_libs1.js
-js/testproto_libs2.js
-
-# Ignore the bazel symlinks
-/bazel-*
-
-# ruby test output
-ruby/lib/
-ruby/tests/generated_code_pb.rb
-ruby/tests/test_import_pb.rb
-ruby/Gemfile.lock
-ruby/compatibility_tests/v3.0.0/protoc
-ruby/compatibility_tests/v3.0.0/tests/generated_code_pb.rb
-ruby/compatibility_tests/v3.0.0/tests/test_import_pb.rb
diff --git a/.gitmodules b/.gitmodules
index 55a47cea..fafd5b2b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
-[submodule "third_party/benchmark"]
- path = third_party/benchmark
- url = https://github.com/google/benchmark.git
+[submodule "multibuild"]
+ path = multibuild
+ url = https://github.com/matthew-brett/multibuild.git
+[submodule "protobuf"]
+ path = protobuf
+ url = https://github.com/google/protobuf.git
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..140b44dd
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,75 @@
+env:
+ global:
+ - REPO_DIR=protobuf
+ - BUILD_COMMIT=v3.5.1
+ - PLAT=x86_64
+ - UNICODE_WIDTH=32
+ - WHEELHOUSE_UPLOADER_USERNAME=travis-worker
+
+language: python
+# Default Python version is usually 2.7
+python: 3.5
+sudo: required
+dist: trusty
+services: docker
+
+matrix:
+ exclude:
+ # Exclude the default Python 3.5 build
+ - python: 3.5
+ include:
+ - os: linux
+ env: MB_PYTHON_VERSION=2.7
+ - os: linux
+ env:
+ - MB_PYTHON_VERSION=3.3
+ - os: linux
+ env:
+ - MB_PYTHON_VERSION=3.4
+ - os: linux
+ env:
+ - MB_PYTHON_VERSION=3.5
+ - os: linux
+ env:
+ - MB_PYTHON_VERSION=3.6
+ - os: osx
+ language: generic
+ env:
+ - MB_PYTHON_VERSION=2.7
+ - os: osx
+ language: generic
+ env:
+ - MB_PYTHON_VERSION=3.3
+ - os: osx
+ language: generic
+ env:
+ - MB_PYTHON_VERSION=3.4
+ - os: osx
+ language: generic
+ env:
+ - MB_PYTHON_VERSION=3.5
+ - os: osx
+ language: generic
+ env:
+ - MB_PYTHON_VERSION=3.6
+
+before_install:
+ - source multibuild/common_utils.sh
+ - source multibuild/travis_steps.sh
+ - before_install
+
+install:
+ # Maybe get and clean and patch source
+ - clean_code $REPO_DIR $BUILD_COMMIT
+ - build_wheel $REPO_DIR $PLAT
+
+script:
+ - install_run $PLAT
+
+after_success:
+ # Upload wheels to Rackspace container
+ # - pip install wheelhouse-uploader
+ # - python -m wheelhouse_uploader upload --local-folder
+ # ${TRAVIS_BUILD_DIR}/wheelhouse/
+ # --no-update-index
+ # wheels
diff --git a/multibuild b/multibuild
new file mode 160000
+Subproject b9071fc7e59e6128999f22ae3f4c4d7fc3d216e
diff --git a/protobuf b/protobuf
new file mode 160000
+Subproject a721bf6d294915b412e4ba6b5d92a9b84c6bfef