| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6f15463 commit 994a033
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,10 @@ env: | |||
| 28 | 28 | - BUILD_NAME="cudnn-cmake" WITH_CMAKE=true WITH_CUDA=true WITH_CUDNN=true | |
| 29 | 29 | ||
| 30 | 30 | cache: | |
| 31 | + timeout: 604800 # 1 week | ||
| 31 | 32 | apt: true | |
| 33 | + directories: | ||
| 34 | + - ~/protobuf3 | ||
| 32 | 35 | ||
| 33 | 36 | before_install: | |
| 34 | 37 | - source ./scripts/travis/defaults.sh | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,25 +40,30 @@ else | |||
| 40 | 40 | python3-skimage | |
| 41 | 41 | ||
| 42 | 42 | # build Protobuf3 since it's needed for Python3 | |
| 43 | - echo "Building protobuf3 from source ..." | ||
| 43 | + PROTOBUF3_DIR=~/protobuf3 | ||
| 44 | 44 | pushd . | |
| 45 | - PROTOBUF3_DIR=~/protobuf3-build | ||
| 46 | - rm -rf $PROTOBUF3_DIR | ||
| 47 | - mkdir $PROTOBUF3_DIR | ||
| 45 | + if [ -d "$PROTOBUF3_DIR" ] && [ -e "$PROTOBUF3_DIR/src/protoc" ]; then | ||
| 46 | + echo "Using cached protobuf3 build ..." | ||
| 47 | + cd $PROTOBUF3_DIR | ||
| 48 | + else | ||
| 49 | + echo "Building protobuf3 from source ..." | ||
| 50 | + rm -rf $PROTOBUF3_DIR | ||
| 51 | + mkdir $PROTOBUF3_DIR | ||
| 48 | 52 | ||
| 49 | - # install some more dependencies required to build protobuf3 | ||
| 50 | - apt-get install -y --no-install-recommends \ | ||
| 51 | - curl \ | ||
| 52 | - dh-autoreconf \ | ||
| 53 | - unzip | ||
| 53 | + # install some more dependencies required to build protobuf3 | ||
| 54 | + apt-get install -y --no-install-recommends \ | ||
| 55 | + curl \ | ||
| 56 | + dh-autoreconf \ | ||
| 57 | + unzip | ||
| 54 | 58 | ||
| 55 | - wget https://github.com/google/protobuf/archive/v3.0.0-beta-3.tar.gz -O protobuf3.tar.gz | ||
| 56 | - tar -xzf protobuf3.tar.gz -C $PROTOBUF3_DIR --strip 1 | ||
| 57 | - rm protobuf3.tar.gz | ||
| 58 | - cd $PROTOBUF3_DIR | ||
| 59 | - ./autogen.sh | ||
| 60 | - ./configure --prefix=/usr | ||
| 61 | - make --jobs=$NUM_THREADS | ||
| 59 | + wget https://github.com/google/protobuf/archive/v3.0.0-beta-3.tar.gz -O protobuf3.tar.gz | ||
| 60 | + tar -xzf protobuf3.tar.gz -C $PROTOBUF3_DIR --strip 1 | ||
| 61 | + rm protobuf3.tar.gz | ||
| 62 | + cd $PROTOBUF3_DIR | ||
| 63 | + ./autogen.sh | ||
| 64 | + ./configure --prefix=/usr | ||
| 65 | + make --jobs=$NUM_THREADS | ||
| 66 | + fi | ||
| 62 | 67 | make install | |
| 63 | 68 | popd | |
| 64 | 69 | fi | |
| Back | FazBrowse Home | New Git URL |
0 commit comments