diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 22:56:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-01 08:35:44 +0000 |
commit | 1a54be06cd359257478b584611f34058d21fe723 (patch) | |
tree | db3d6ca2dfa2a87ae2efdac6e412c2b780a64009 /.travis/cmake-freebsd-stage2 | |
parent | 706fad1ce88c2104009a3835ee343ff9d8ec8b79 (diff) |
Simplify Travis CI builds.
Have one script per build. This means more duplication between the
scripts, but it's much easier to understand and to run locally.
Diffstat (limited to '.travis/cmake-freebsd-stage2')
-rwxr-xr-x | .travis/cmake-freebsd-stage2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.travis/cmake-freebsd-stage2 b/.travis/cmake-freebsd-stage2 new file mode 100755 index 00000000..57b8a0f8 --- /dev/null +++ b/.travis/cmake-freebsd-stage2 | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ACTION="$1" | ||
4 | |||
5 | set -eu | ||
6 | |||
7 | . other/travis/env.sh | ||
8 | . other/travis/env-freebsd.sh | ||
9 | |||
10 | travis_install() { | ||
11 | . other/travis/freebsd-install | ||
12 | . other/travis/freebsd-install-stage2 | ||
13 | } | ||
14 | |||
15 | travis_script() { | ||
16 | . other/travis/toxcore-script | ||
17 | } | ||
18 | |||
19 | if [ "-z" "$ACTION" ]; then | ||
20 | "travis_script" | ||
21 | else | ||
22 | "travis_$ACTION" | ||
23 | fi | ||