-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (45 loc) · 1.22 KB
/
.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: cpp
os:
- linux
- osx
compiler: gcc
env: CONFIG=Debug
group: stable
dist: trusty
install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50
./ci/prepare.sh linux
sudo make -j2 -C $HOME/botan install
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
./ci/prepare.sh osx
sudo make -j2 -C $HOME/botan libs
fi
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
./configure.py --debug-mode --test --build-shared-lib --build-cli
make
pushd ./bin/debug/ && ./encryptmsg-test && popd
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
./configure.py --debug-mode --test --build-cli --botan-include-dir $HOME/botan/build/include --botan-lib-dir $HOME/botan
make
pushd ./bin/debug/ && ./encryptmsg-test && popd
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- zlib1g-dev
- g++-5