Skip to content

Commit 6fbaad7

Browse files
committed
Enhance Travis CI builds to do test installs
This change improves CI builds to also test the installation cmake targets for proper completion.
1 parent fc9ff05 commit 6fbaad7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ cache:
1515

1616
# Handle dependencies in separate directory.
1717
before_install:
18+
- TESTINST_DIR="${HOME}/dummy"
19+
- mkdir -p "${TESTINST_DIR}"
1820
- DEPS_DIR="${HOME}/deps"
1921
- mkdir -p "${DEPS_DIR}"
2022
- cd "${DEPS_DIR}"
@@ -40,9 +42,11 @@ before_script:
4042
script:
4143
- mkdir -p build
4244
- cd build
43-
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install ..
45+
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install -D CMAKE_INSTALL_PREFIX:PATH=${TESTINST_DIR} ..
4446
- cmake --build .
4547
- cd ..
4648
- python test_cases.py
4749
- python setup.py build
4850
- python setup.py sdist
51+
- cd build
52+
- cmake --build . --target install

0 commit comments

Comments
 (0)