|
| 1 | +# vim:sw=2:et: |
| 2 | + |
1 | 3 | sudo: false |
2 | | -services: |
3 | | - - docker |
4 | 4 | language: erlang |
5 | 5 | notifications: |
6 | 6 | email: |
7 | 7 | |
8 | 8 | addons: |
9 | 9 | apt: |
10 | 10 | packages: |
| 11 | + - awscli |
11 | 12 | - xsltproc |
| 13 | +cache: |
| 14 | + apt: true |
| 15 | +env: |
| 16 | + global: |
| 17 | + - secure: cz1CEq0NSXAbpLHjORlf/nG+9vrlJUSbtYF9fBO1OSw3E96c1Sp9sbMC2m6cqizxzZCOnsUSwXE4Tdxn73+v3d3ebl+V3PwJ2YbvOZvMURZ/SLwrycsgPZZNsefEMOQs0zLfP7ocI9UgrioN1/QwmMKSKeWxgdh+56CW9xVDgMA= |
| 18 | + - secure: kCzu0qlzKNJSUcN+Uwe65Zf2oK2T7ImxIW8BdA/7cwPihfSyRQFRJ2vzi/RSxwSDjuOlxchu8w2KuPxC55MDfq1QIbdFmqRU4Bo0mIYWAvkh25y0mBPYf2wIkt4TAu2F+hftfwjAB6zMWeAdCu3/41dnU/duoG7nROM41ie3Xio= |
| 19 | + |
12 | 20 | otp_release: |
13 | 21 | - "R16B03-1" |
14 | | - - "17.5" |
15 | | - - "18.3" |
16 | | - - "19.0" |
17 | | -env: |
18 | | - matrix: |
19 | | - - GROUP=1 |
20 | | - - GROUP=2 |
| 22 | + - "19.3" |
| 23 | + - "20.1" |
21 | 24 |
|
22 | | -# The checkout made by Travis is a "detached HEAD" and branches |
23 | | -# information is missing. Our Erlang.mk's git_rmq fetch method relies on |
24 | | -# it, so we need to restore it. |
25 | | -# |
26 | | -# We simply fetch master and, if it exists, stable branches. A branch is |
27 | | -# created, pointing to the detached HEAD. |
28 | 25 | before_script: |
| 26 | + # The checkout made by Travis is a "detached HEAD" and branches |
| 27 | + # information is missing. Our Erlang.mk's git_rmq fetch method relies |
| 28 | + # on it, so we need to restore it. |
| 29 | + # |
| 30 | + # We simply fetch master and, if it exists, stable branches. A branch |
| 31 | + # is created, pointing to the detached HEAD. |
29 | 32 | - | |
30 | 33 | git checkout -B "${TRAVIS_TAG:-${TRAVIS_BRANCH}}" |
31 | 34 | git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git |
32 | 35 | git fetch upstream stable:stable || : |
33 | 36 | git fetch upstream master:master || : |
34 | 37 |
|
35 | 38 | script: |
36 | | - - if test "${GROUP}" = '1'; then make tests; fi |
37 | | - - if test "${GROUP}" = '2'; then sh ./scripts/travis_test_ocf_ra.sh; fi |
| 39 | + - make xref |
| 40 | + - make tests |
38 | 41 |
|
39 | | -cache: |
40 | | - apt: true |
| 42 | +after_failure: |
| 43 | + - | |
| 44 | + cd "$TRAVIS_BUILD_DIR" |
| 45 | + if test -d logs && test "$AWS_ACCESS_KEY_ID" && test "$AWS_SECRET_ACCESS_KEY"; then |
| 46 | + archive_name="$(basename "$TRAVIS_REPO_SLUG")-$TRAVIS_JOB_NUMBER" |
| 47 | +
|
| 48 | + tar -c --transform "s/^logs/${archive_name}/" -f - logs | \ |
| 49 | + xz > "${archive_name}.tar.xz" |
| 50 | +
|
| 51 | + aws s3 cp "${archive_name}.tar.xz" s3://server-release-pipeline/travis-ci-logs/ \ |
| 52 | + --region eu-west-1 \ |
| 53 | + --acl public-read |
| 54 | + fi |
0 commit comments