@@ -2,29 +2,46 @@ sudo: required
2
2
jobs :
3
3
include :
4
4
- stage : build
5
+ language : cpp
5
6
os : linux
6
7
jdk : oraclejdk8
7
- language : generic
8
8
before_install :
9
9
- wget https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
10
10
- tar -xzvf protobuf-cpp-3.6.1.tar.gz
11
- - pushd protobuf-3.6.1 && ./configure --disable-shared && make && sudo make install
12
- && popd
11
+ - pushd protobuf-3.6.1
12
+ - ./configure --disable-shared && make && sudo make install
13
+ - popd
14
+ script : " ./ci/travis.sh"
15
+ - stage : build
16
+ language : cpp
17
+ os : windows
18
+ filter_secrets : false
19
+ env :
20
+ - GRADLE_OPTS="-Dorg.gradle.daemon=false"
21
+ before_install :
22
+ - rm -r "/c/Program Files (x86)/Microsoft Visual Studio 14.0"
23
+ - export PATH=$PATH:"/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64"
24
+ - choco install -y jdk8 --version 8.0.201
25
+ - export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_201/bin"
26
+ - wget https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
27
+ - tar -xzf protobuf-cpp-3.6.1.tar.gz
28
+ - pushd protobuf-3.6.1/cmake
29
+ - mkdir build && cd build
30
+ - cmake -A x64 -DCMAKE_INSTALL_PREFIX="/c/Program Files/protobuf" -DCMAKE_CXX_FLAGS="-std=c++11 -EHsc" -Dprotobuf_BUILD_TESTS=OFF ..
31
+ - cmake --build . --config Release --target install
32
+ - popd
13
33
script : " ./ci/travis.sh"
14
34
- stage : deploy
35
+ language : cpp
15
36
os : osx
16
- osx_image : xcode9.4
17
- language : generic
18
- env :
19
- - HOMEBREW_TEMP="/tmp"
20
- - LDFLAGS="/usr/local/lib/libprotobuf.a /usr/local/lib/libprotoc.a"
37
+ osx_image : xcode10.1
38
+ compiler : clang
21
39
before_install :
22
- - brew update
23
- - pushd $(brew --repo)/Library/Taps/homebrew/homebrew-core
24
- - git checkout 25a1892 Formula/protobuf.rb
25
- - EDITOR="sed -i '' 's/system \".\/configure\",/system \".\/configure\", \"--disable-shared\",/g'"
26
- brew edit protobuf
27
- - brew install protobuf
40
+ - curl -O -L https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
41
+ - tar -xzf protobuf-cpp-3.6.1.tar.gz
42
+ - pushd protobuf-3.6.1
43
+ - ./autogen.sh
44
+ - ./configure --disable-shared && make && sudo make install
28
45
- popd
29
46
script : " ./ci/travis.sh"
30
47
before_cache :
0 commit comments