forked from assimilation/assimilation-official
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (22 loc) · 931 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: minimal
env:
- BUILD_ENV=ubuntu1804 STOCK=ubuntu:18.04
- BUILD_ENV=centos7 STOCK=centos:7
script:
# test_img contains all the build prereqs installed
# in future, we'll just pull a pre-built image to speed up build times
- docker build -f ci/Dockerfiles/$BUILD_ENV.dockerfile -t test_img .
# use test_img to generate rpm / deb packages (cmake). drop the output in /build_artifacts
# path-to-source-directory = /root/assimilation/src
# path-to-binary-directory = /root/assimilation/bin
# path-to-build-artifacts = /root/assimilation/ba
- |
docker run \
-v $TRAVIS_BUILD_DIR:/root/assimilation/src \
-v /tmp/bin:/root/assimilation/bin \
-v /tmp/ba:/root/assimilation/ba \
test_img \
bash -c "cmake ../src && make install"
# test the new packages in a stock image (install and run tests)
# - docker run -v /tmp/ba:/packages $STOCK ls -al /packages
# upload to artifactory