Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.travis.yml « attic - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6e5ff5f55060064a00e93e875abcb8a31855ba5 (plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
dist: bionic
language: cpp
sudo: true
git:
  submodules: false
branches:
  only:
    - develop
notifications:
  email:
    recipients:
      - nialldouglas14@gmail.com

addons:
  apt:
#    sources:
#    - sourceline: "ppa:ubuntu-toolchain-r/test"
    packages:
    - g++
    - clang
    - g++-arm-linux-gnueabihf
    - python3
    - cmake
    - cmake-data
    - doxygen
    - python3
    - python3-pip
#  homebrew:
#    packages:
#    - 

env:
  global:
    - secure: "A3TeWTlJdjUaQ31NF60kMOik8mzaJkdKA55jZXjN83BJ2ZjMDmWfq1XmZ7iDIxmn7HC2BVpjhdkj9jpRtPztb08L5VSlJIiVbXlBWNwgzmYANujpR9rA+bhZJwlKDaYQHUZUd4+iGHCHb0dLt2HG0eHF5azaifd0YqCfz5GcWl8="
 
matrix:
  include:
  - name: "g++ 7.5 x64 cmake tests (error_code)"
    compiler: g++
    os: linux
    env: NAME=x64_EC_tests
  - name: "clang++ 7.0 x64 cmake tests (error_code)"
    compiler: clang++
    os: linux
    env: NAME=x64_EC_tests
  - name: "libc++ x64 C++ 20 cmake tests (error_code)"
    compiler: clang++-11
    os: linux
    env:
     - NAME=x64_EC_tests
     - CMAKE_CONFIGURE_OPTIONS=-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake
  - name: "Xcode 11.6 x64 cmake tests (error_code)"
    compiler: clang++
    os: osx
    osx_image: xcode11.6
    env: NAME=x64_EC_tests
  - name: "g++ 7.5 x64 cmake tests (status_code)"
    compiler: g++
    os: linux
    env:
     - NAME=x64_SC_tests
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "clang++ 7.0 x64 cmake tests (status_code)"
    compiler: clang++
    os: linux
    env:
     - NAME=x64_SC_tests
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "libc++ x64 C++ 20 cmake tests (status_code)"
    compiler: clang++-11
    os: linux
    env:
     - NAME=x64_SC_tests
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake
#  - name: "Xcode 11.6 x64 cmake tests (status_code)"
#    compiler: clang++
#    os: osx
#    osx_image: xcode11.6
#    env:
#     - NAME=x64_SC_tests
#     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "g++ ARM32 cmake build (error_code)"
    compiler: g++
    os: linux
    env: NAME=ARM32_EC_build
  - name: "g++ ARM32 cmake build (status_code)"
    compiler: g++
    os: linux
    env:
     - NAME=ARM32_SC_build
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "Documentation"
    compiler: clang++
    os: linux
    env: NAME=Documentation
  - name: "g++ 7.5 x64 Programs (error_code)"
    compiler: g++
    os: linux
    env: NAME=x64_EC_programs
  - name: "clang++ 7.0 x64 Programs (error_code)"
    compiler: clang++
    os: linux
    env: NAME=x64_EC_programs
  - name: "libc++ x64 C++ 20 Programs (error_code)"
    compiler: clang++-11
    os: linux
    env:
     - NAME=x64_EC_programs
     - CMAKE_CONFIGURE_OPTIONS=-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake
  - name: "Xcode 11.6 x64 Programs (error_code)"
    compiler: clang++
    os: osx
    osx_image: xcode11.6
    env: NAME=x64_EC_programs
#  - name: "x64 Programs (status_code)"
#    compiler:
#     - g++
#     - clang++
#     - clang++-11
#    env:
#     - NAME=x64_SC_programs
#     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "g++ 7.5 Installability (error_code)"
    compiler: g++
    os: linux
    env: NAME=x64_EC_install
  - name: "clang++ 7.0 Installability (error_code)"
    compiler: clang++
    os: linux
    env: NAME=x64_EC_install
  - name: "libc++ C++ 20 Installability (error_code)"
    compiler: clang++-11
    os: linux
    env:
     - NAME=x64_EC_install
     - CMAKE_CONFIGURE_OPTIONS=-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake
  - name: "Xcode 11.6 Installability (error_code)"
    compiler: clang++
    os: osx
    osx_image: xcode11.6
    env: NAME=x64_EC_install
  - name: "g++ 7.5 Installability (status_code)"
    compiler: g++
    os: linux
    env:
     - NAME=x64_SC_install
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "clang++ 7.0 Installability (status_code)"
    compiler: clang++
    os: linux
    env:
     - NAME=x64_SC_install
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
  - name: "libc++ C++ 20 Installability (status_code)"
    compiler: clang++-11
    os: linux
    env:
     - NAME=x64_SC_install
     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-libc++.cmake
#  - name: "Xcode 11.6 Installability (status_code)"
#    compiler: clang++
#    os: osx
#    osx_image: xcode11.6
#    env:
#     - NAME=x64_SC_install
#     - CMAKE_CONFIGURE_OPTIONS=-DLLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE=ON
    
before_install:
 - if [ "$TRAVIS_COMPILER" = "clang++-11" ]; then
     wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -;
     echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main" >> /etc/apt/sources.list;
     sudo apt update;
     sudo apt install clang-11 libc++-11-dev libc++abi-11-dev libomp-11-dev;
   fi
 - mount

#     mkdir build;
#     cd build;
#     cmake ..  $CMAKE_CONFIGURE_OPTIONS -DCMAKE_BUILD_TYPE=Release;
#     cmake --build . -- _sl;
#     cmake --build . -- _dl;
#     ctest -C Release -E llfio_hl|shared_fs_mutex;
#     cd ..;

script:
 -
   if [[ "$NAME" == "x64_"*"_tests" ]]; then
     export ASAN_OPTIONS=detect_leaks=0;
     ctest -S .ci.cmake -VV --timeout 300 -DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS ;
   fi
 -
   if [[ "$NAME" == "ARM32_"*"_build" ]]; then
     ctest -S .ci.cmake -V --timeout 300 -DCTEST_DISABLE_TESTING=1 '-DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-linux-arm.cmake';
   fi
 -
   if [ "$NAME" = "Documentation" ]; then
     git config --global push.default simple;
     git config --global user.name "Jenkins nedprod CI";
     git config --global user.email "foo@nowhere";
     git submodule update --init;
     cd doc/html;
     git checkout gh-pages;
     cd ../..;
     ctest -S .docs.cmake -V;
     cd doc/html;
     git add . || true;
     git commit -a -m "Travis CI updates documentation" || true;
     git push -f https://jenkins-nedprod:$JENKINS_NEDPROD_PASSWORD@github.com/ned14/llfio gh-pages;
     cd ../..;
   fi
 -
   if [[ "$NAME" == "x64_"*"_programs" ]]; then
     cd programs;
     mkdir build;
     cd build;
     cmake ..  $CMAKE_CONFIGURE_OPTIONS -DCMAKE_BUILD_TYPE=Release;
     cmake --build .;
   fi
 -
   if [[ "$NAME" == "x64_"*"_install" ]]; then
     git clone --depth 1 https://github.com/ned14/quickcpplib.git;
     pip3 install --user gitpython;
     python3 quickcpplib/scripts/test_cpp-pm_install.py test-packaging/example.cpp quickcpplib quickcpplib::hl https://github.com/ned14/quickcpplib master outcome outcome::hl https://github.com/ned14/outcome better_optimisation llfio llfio::sl https://github.com/ned14/llfio master;
     cd test_cpp-pm_install;
     mkdir build;
     cd build;
     cmake .. -DCMAKE_BUILD_TYPE=Release;
     cmake --build .;
   fi
 
after_success:
  - echo $TRAVIS_OS_NAME
  - echo $TRAVIS_COMPILER
  - echo $NAME
# - bash -x ./update_coveralls.sh `pwd`
#  - NEWNAME=llfio-v2-binaries-linux64-$(date +%Y%m%d%H%M%S).tgz
  - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_COMPILER" = "g++" ] && [ "$NAME" = "x64_EC_tests" ]; then   
      NEWNAME=llfio-v2-binaries-linux64-$TRAVIS_COMMIT.tgz;
      mv llfio-v2.0-binaries-linux-x64.tgz $NEWNAME;
      curl -T $NEWNAME -u jenkins-nedprod:$JENKINS_NEDPROD_PASSWORD https://dedi6.nedprod.com/static/files/upload/;
    fi
  - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$NAME" = "x64_EC_tests" ]; then   
      NEWNAME=llfio-v2-binaries-darwin64-$TRAVIS_COMMIT.tgz;
      mv llfio-v2.0-binaries-darwin-x64.tgz $NEWNAME;
      curl -T $NEWNAME -u jenkins-nedprod:$JENKINS_NEDPROD_PASSWORD https://dedi6.nedprod.com/static/files/upload/;
    fi

after_failure: