-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
48 lines (42 loc) · 1.35 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
48
language: c
dist: bionic
compiler:
- clang
- gcc
git:
depth: 1
quiet: true
env:
- PROJ_INSTALL_DIR=$HOME/install
before_install:
- sudo apt-get update
- sudo apt-get install -y libcurl4-openssl-dev
before_script:
- mkdir -p $PROJ_INSTALL_DIR
- ROOT_OF_REPO=$(pwd)
script:
# Build project
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PROJ_INSTALL_DIR
- make -j$(nproc)
- make install
# Build/Package minimalist example
- cd $ROOT_OF_REPO/examples/minimalist
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PROJ_INSTALL_DIR
- make -j$(nproc)
- make aws-lambda-package-minimalist
# Build/Package s3 example
- cd $ROOT_OF_REPO/examples/s3
- mkdir tmp_dep && cd tmp_dep
- git clone https://github.com/aws/aws-sdk-cpp.git --depth=1
- cd aws-sdk-cpp
- mkdir build && cd build
- cmake .. -DBUILD_ONLY="s3" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCUSTOM_MEMORY_MANAGEMENT=OFF -DCMAKE_INSTALL_PREFIX=~/install -DENABLE_UNITY_BUILD=ON -DENABLE_TESTING=OFF -DAUTORUN_UNIT_TESTS=OFF
- make -j$(nproc) && make install
- cd $ROOT_OF_REPO/examples/s3
- rm -rf tmp_dep
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PROJ_INSTALL_DIR
- make -j$(nproc)
- make aws-lambda-package-s3-list-buckets