forked from WickrInc/wickr-crypto-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (104 loc) · 5.17 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: c
os: linux
dist: bionic
node_js:
- '10'
env:
global:
- secure: IQxHT3BNaaNeKhqx08zsVW2we5oh3bjlKIVsIaYkN5CSM4ErVEFV5lncXloHXN5RtNxpZ0I3Mo11MuwF5LH+/4K9j37a4pQgU6R66Ok7OyanWYcPPfQLwXfQIO1/SD/NKgSGp6ob1C2wxLno040BHUOEf92wrNUxBJe6wwGBE6kuo5IuE+73lySI2rwacEu5Op0B2X1/SgpDF9Y5e31kZw6jh65jDh/slMJnzl5/R7X/VC7eDY9JfM18/4JMnuVY0Larzo5Zu5bCABXBhywMaEaUCFWnWP4PYu4ato697zBGOToppR2EH15lu8pD3HxPp0IR3SfsPjIdKt+nXkWFvJdZMS533GK1FZV6AaZxNFV+7nly6jnGndDdA9/y8oNs6tc0AKaKbAp378n1bNMY26cUfs+lZmzv24PYuob8q/kO6X2r1BTavZ5ScRGrKibtwZ/WLpVOuo/2hZxDdHc2UatlgTXL3f38ptD5HdPiLfMKfXmVaJVP2PMYudfwCoDXkbtNrQYWL86FwjC0BA7/kjZivNeMrt4uWP8RLpjTvXRtjUgqQRWZaok99eamQ0z9Yf+ehoSTTO3Aevv0qyD19Dopd/qEJnt+K/zBhQFbX61/MA46rE9orn2HJMOlabTaQTmZxE9cdobWwwbZWaTIhvfgQJHeOmZF6zdtuASvJ+M=
- secure: UNweCnb3OYt0KsLkACJeqMvUkD7Afb0+bgW6GnZT27R9OgYruMvthRWUTZ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NxxGzujVJW1n+3s06LqDzYyj9N1BEbpSqLnXi8CYICld1oY2zHBxitJEP+D3QRro+c4nA8LC/y4sUfwI0JZGGuHnPwSbT2oLr6THF6mLIKUK4U5FBPI5dJmBhwBK5BZD7lQFU5v7JBBZDFnsriQCEOyd4HYXEdu0Rno2LjUCSUKzSFF8YKdjOwXbNgkzQfBCf2xhzi08DKQ/SQeHP2o1JvR0CajG7jmQxwU=
- secure: pK5H5m/Eoa5g/pHpSCh+B2H435tuYVeyRHFYm3MMGBeYfhv4ZQ1Z5/F0HmOxQ/jiDoYafawlRWTmYnbQnU2rKbtcBejC49IaYnQEY+a7QhcF6HJ3BJ0jzYE2sHu+R/A7jUdrd5p4Ewdmm6e1OiiJdSIlUfA+gDiSH50B3lNT3gJeBwSF+UTmav6/be1+BcNWt+TuRBPfD+fik/wdda3AJZniOrdbFMb9RnjGrlLVpimfnvr9AsdJUPBGvHTRmfD5yjbh3xWUcrs3O9DGlM7ughMDnJRo6NnCLBz1hKvveLCAChjbbOybcTUK/7VXal9CP5+woXw3yR91L23bern/ta4KNRG4qa2vL8yR1Hne29rSNNv25RoedqtVZWZy7nmCewZe7F3oBq4ky6CJSd+jGeGxdDOmgseHfSNGQdmtQP7n30kaUQwBAa3/3dVkiItwD+9qCzQ+LnOKaA4czEkyAyrMGtfla4gSdjH7kLaFHR0lYWdrz+S1r5UL99DJBGqH/a9LoAoPnoXIvAru74bbJSulQR2VFnDwgI/7aYVvMurdwwl6Ti5ALewNA5LCsLabT+wTxDEh3I+YQt8uQ89vr68Z+Ve3JOEBKtrSwcShchEM/uArPTd7LgjniWd8+hL6Rft0AyoCn5MF/bPtdSlyO+RSOms26DOkujOfni0qQaU=
services:
- docker
jobs:
include:
- os: linux
dist: bionic
env:
- OPENSSL="1.1.0"
- FIPS=FALSE
- os: linux
dist: bionic
env:
- OPENSSL="BUILD"
- FIPS=FALSE
- os: linux
dist: bionic
env:
- OPENSSL="BUILD"
- FIPS=TRUE
- os: osx
osx_image: xcode11
env:
- FIPS=FALSE
- os: osx
osx_image: xcode11
env:
- FIPS=TRUE
- os: osx
osx_image: xcode11
env:
- IOS=true
- FIPS=false
- os: osx
osx_image: xcode11
env:
- IOS=true
- FIPS=true
- os: linux
dist: bionic
env:
- ANDROID=true
- os: linux
dist: bionic
env:
- ANDROID=true
- FIPS=true
- os: linux
dist: bionic
env:
- NODE=true
- os: linux
dist: bionic
if: tag IS present
env:
- NODE_DISTRO=true
- os: osx
osx_image: xcode11
env:
- NODE=true
- NODE_VER=10
- os: osx
osx_image: xcode11
env:
- NODE=true
- NODE_VER=12
- os: linux
jdk: oraclejdk8
env:
- JAVA=true
- FIPS=false
- os: osx
jdk: oraclejdk8
osx_image: xcode11
env:
- JAVA=true
- FIPS=false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$OPENSSL" == "BUILD" ]]; then export LOCAL_OPTIONS="-DBUILD_OPENSSL=true";
fi
- if [[ "${NODE}" == "true" || "${JAVA}" == "true" ]]; then git clone https://github.com/tomleavy/swig.git;
cd swig; git checkout -t origin/pr/new-node-fixes; ./autogen.sh; ./configure; make
-j2 && sudo make install; cd ../; fi
- if [[ "${JAVA}" == "true" ]]; then export LOCAL_OPTIONS="-DBUILLD_JAVA=true"; fi
- if [[ "${IOS}" == "true" ]]; then export LOCAL_OPTIONS="-DCMAKE_TOOLCHAIN_FILE=../Toolchain-iOS.cmake";
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$NODE" == "true" ]]; then nvm install ${NODE_VER};
fi
script:
- "export OSSL_SUPPORT_UNAME=${OSSL_SUPPORT_UNAME}; export OSSL_SUPPORT_PASS=${OSSL_SUPPORT_PASS}; if [[ ! -z \"${ANDROID}\" ]]; then\n ./build_android_docker.sh\nelif [[ ! -z \"${NODE}\"
]]; then\n\n npm install --build-from-source\n npm test\nelif [[ ! -z \"${NODE_DISTRO}\"
]]; then\n ./build_node_dist.sh\nelse\n mkdir build && cd build\n cmake ${LOCAL_OPTIONS}
-DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=true -DOSSL_SUPPORT_UNAME=${OSSL_SUPPORT_UNAME} -DOSSL_SUPPORT_PASS=${OSSL_SUPPORT_PASS} -DFIPS=${FIPS}
-DBUILD_TESTS=true ../\n make \n if [[ -z \"${IOS}\" ]]; then make test; fi\nfi\n"