forked from OpenChemistry/avogadrolibs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (68 loc) · 1.6 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
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
language: cpp
sudo: true
matrix:
allow_failures:
- os: osx
include:
- language: python
sudo: false
python: 2.7
env: TASKS="clang-format"
os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-format-6.0
if: branch = master AND tag IS blank
- compiler: gcc
os: linux
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-4.9
env:
- TASKS="ctest gcc-4.9"
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
if: branch = master AND tag IS blank
- compiler: gcc
os: linux
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-6
env:
- TASKS="ctest gcc-6.3"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
if: branch = master AND tag IS blank
- compiler: clang
os: linux
env: TASKS="ctest clang-3.9"
if: branch = master AND tag IS blank
- os: osx
env: TASKS="Mac clang"
if: branch = master AND tag IS blank
- os: osx
env: DEPLOY=TRUE
if: tag IS present
install:
- ./scripts/travis/install.sh
script:
- ./scripts/travis/build.sh
before_deploy:
- ./scripts/travis/macpython-build-wheels.sh 3.5 3.6 3.7
# Currently we have todo the pypi upload in a script, as Travis's support is
# broken :-(
deploy:
provider: script
script: ./scripts/travis/upload_pypi.sh
skip_cleanup: true
on:
tags: true