forked from LonxunQuantum/CASMcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (67 loc) · 1.73 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
sudo: false
language: cpp
git:
depth: false
cache:
ccache: true
# Build on pull request or push to:
# - branches explicitly listed
branches:
only:
- 0.3.X
- 1.0.X
jobs:
include:
# stage 1:
# Run tests
# test on linux
- stage: test_it
os: linux
dist: focal
compiler: gcc
addons:
apt:
packages:
- bash-completion
- curl
install:
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-install.sh
script:
- echo "test_it on $TRAVIS_OS_NAME"
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-script.sh
# test on osx
- stage: test_it
os: osx
osx_image: xcode11.6
compiler: clang
install:
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-install.sh
script:
- echo "test_it on $TRAVIS_OS_NAME"
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-script.sh
# stage 2:
# If tests pass, and this is a merge or push to primary development branches, then we will
# upload updated conda packages
# primary linux package
- stage: package_it
if: env(CASM_CONDA_ID_USER) IS present AND type = push
os: linux
dist: focal
compiler: gcc
addons:
apt:
packages:
- bash-completion
- curl
script:
- echo "package_it on $TRAVIS_OS_NAME"
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-build-conda.sh
# osx package
- stage: package_it
if: env(CASM_CONDA_ID_USER) IS present AND type = push
os: osx
osx_image: xcode11.6
compiler: clang
script:
- echo "package_it on $TRAVIS_OS_NAME"
- bash $TRAVIS_BUILD_DIR/build_scripts/travis-build-conda.sh