/
.travis.yml
86 lines (71 loc) · 2.15 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
language: cpp
matrix:
include:
- os: osx
osx_image: xcode14.2
- os: linux
dist: focal
services: docker
arch: amd64
- os: linux
dist: focal
services: docker
arch: arm64
addons:
homebrew:
update: false
#https://github.com/travis-ci/travis-ci/issues/6893
if: tag IS present
#https://docs.travis-ci.com/user/customizing-the-build/#git-clone-depth
git:
depth: 3
submodules: false
# prevent duplicate builds on tagged versions on master
# development to be done on other branches
#branches:
# except:
# - master
#before_install:
#install:
before_script:
- export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install cmake;
git submodule update --init --depth 1 external/eigen;
fi
# specifically for pypi deployment
- export README_BASE_URL="https://github.com/devsim/devsim/blob/${TRAVIS_TAG}"
- git submodule update --init --depth 1 external/symdiff
- git submodule update --init --depth 1 external/boostorg/multiprecision
- git submodule update --init --depth 1 external/boostorg/math
- git submodule update --init --depth 1 external/boostorg/config
- git submodule update --init --depth 1 external/umfpack_lgpl
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then
git submodule update --init --depth 1 external/eigen;
fi
fi
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
./scripts/build_docker_manylinux2014.sh ${TRAVIS_TAG};
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
./scripts/build_macos.sh clang "${TRAVIS_TAG}";
fi
#before_deploy:
deploy:
provider: releases
api_key:
secure: "NC1eth9atMJXJzjtqvUTNFikaHZnfDEhN7b1p0RFpbBDxxzDhpRhxva5QkbiHCWp02S8BKBW1BcVg+wpyck0CJ1b66/3VjBXZaFo0e/KmPaA4+hWvyasEDOHYQUzbhZ2LFleqFYjy7uXifCcX/1u2vVNjRZFhFNRNN9WreHeaUo="
file_glob: true
file:
- "dist/devsim*.tgz"
- "dist/devsim*.whl"
skip_cleanup: true
prerelease: false
draft: true
# fix issue with multiple deployments https://github.com/travis-ci/travis-ci/issues/6132
tag_name: $TRAVIS_TAG
on:
repo: devsim/devsim
tags: true