forked from ghewgill/neon-lang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (50 loc) · 2.09 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
language: cpp
osx_image: xcode11 # at least until travis default osx version works
jobs:
include:
- os: linux
compiler: gcc
env: BUILDER=scons RELEASE=0 WITH_SUBMODULES=0
- os: linux
compiler: gcc
env: BUILDER=cmake WITH_SUBMODULES=0
- os: linux
compiler: clang
env: BUILDER=cmake WITH_SUBMODULES=0
- os: linux
compiler: clang
# Submodules currently only build with scons.
env: BUILDER=scons RELEASE=0 WITH_SUBMODULES=1
- os: linux
compiler: clang
arch: arm64
env: BUILDER=cmake WITH_SUBMODULES=0
# Currently resid does not build on arm.
#- os: linux
# compiler: clang
# arch: arm64
# # Submodules currently only build with scons.
# env: BUILDER=scons RELEASE=0 WITH_SUBMODULES=1 BID_GENERIC=1
- os: osx
compiler: clang
env: BUILDER=cmake WITH_SUBMODULES=0
- os: osx
compiler: clang
env: BUILDER=cmake WITH_SUBMODULES=1
git:
submodules: false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which scons || brew install scons; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which mcs || brew install mono; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt install python3-pip; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo pip3 install scons; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sed -i -e '1s/python$/python3/' $(which scons); fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then which mcs || sudo apt install mono-mcs; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt install libncurses-dev; fi
before_script:
- if [ "$WITH_SUBMODULES" == "1" ]; then git submodule update --init; fi
script:
- if [ "$BUILDER" == "scons" ]; then if [ "$BID_GENERIC" == "" ]; then scons RELEASE=$RELEASE; else scons RELEASE=$RELEASE BID_GENERIC=$BID_GENERIC; fi; fi
- if [ "$BUILDER" == "cmake" ]; then cmake . && make && ctest -V; fi
sudo: false