File tree 3 files changed +73
-0
lines changed
3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ env :
3
+ global :
4
+ - CONAN_USERNAME : " ltjax"
5
+ - CONAN_LOGIN_USERNAME : " ltjax"
6
+ - CONAN_CHANNEL : " testing"
7
+ - CONAN_UPLOAD : " https://api.bintray.com/conan/ltjax/conan"
8
+ - CONAN_USER_HOME : " /tmp/conan"
9
+ - CONAN_ARCHS : " x86_64"
10
+
11
+ _linux : &linux
12
+ os : linux
13
+ dist : xenial
14
+ language : cpp
15
+ addons :
16
+ apt :
17
+ update : true
18
+ sources :
19
+ - ubuntu-toolchain-r-test
20
+ packages :
21
+ - git
22
+ - build-essential
23
+ - python3-pip
24
+ - python3-setuptools
25
+
26
+ jobs :
27
+ include :
28
+ - << : *linux
29
+ env : GCC_VERSION=9 CONAN_GCC_VERSIONS=9
30
+
31
+ - << : *linux
32
+ env : GCC_VERSION=8 CONAN_GCC_VERSIONS=8
33
+
34
+ cache :
35
+ directories :
36
+ - $CONAN_USER_HOME
37
+
38
+ install :
39
+ - chmod +x .travis/install.sh
40
+ - ./.travis/install.sh
41
+
42
+ script :
43
+ - chmod +x .travis/run.sh
44
+ - ./.travis/run.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+ set -x
5
+
6
+ if [[ " $( uname -s) " == ' Linux' ]]; then
7
+ # Also install -multilib to cross-compile from x86-64 to x86
8
+ # https://stackoverflow.com/questions/4643197/missing-include-bits-cconfig-h-when-cross-compiling-64-bit-program-on-32-bit
9
+ sudo apt-get install gcc-${GCC_VERSION} g++-${GCC_VERSION} gcc-${GCC_VERSION} -multilib g++-${GCC_VERSION} -multilib
10
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_VERSION} 60 --slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION}
11
+ sudo update-alternatives --config gcc
12
+ python3 --version
13
+ sudo pip3 install cmake==3.13.3
14
+ pip3 install --upgrade pip --user
15
+ pip --version
16
+ pip install conan --upgrade --user
17
+ pip install conan_package_tools --user
18
+ cmake --version
19
+ conan --version
20
+ conan profile new default --detect --force
21
+ conan profile update settings.compiler.libcxx=libstdc++11 default
22
+ fi
23
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+ set -x
5
+
6
+ python3 build.py
You can’t perform that action at this time.
0 commit comments