summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cirrus.yml38
-rw-r--r--.travis.yml48
-rw-r--r--README.md2
3 files changed, 39 insertions, 49 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 7b50d62..d113248 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,4 +1,5 @@
test_task:
+ use_compute_credits: true
container:
matrix:
- image: erlang:22
@@ -18,6 +19,43 @@ osx_test_task:
./bootstrap
./rebar3 ct
+nightly_task:
+ container:
+ image: erlang:18
+ depends_on:
+ - test
+ only_if: $BRANCH == "master"
+ script: |
+ apt install s3cmd
+ ./bootstrap
+ s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY put ./rebar3 s3://rebar3-nightly
+ environment:
+ ACCESS_KEY: ENCRYPTED[86c639224b3cfc11ae5dbd48b13de5ff77dd5c75f1bf1808ddbbb5bc60049f16885b4e2e3a7981376cac562f7a2d176b]
+ SECRET_KEY: ENCRYPTED[189c3b982c2f846193bb34c3de86e0172b8a4c793699f64dc95bb9a1e6bbe83c252c77d37ea1503928aa9b41a3652ca3]
+
+release_task:
+ container:
+ image: erlang:18
+ depends_on:
+ - test
+ only_if: $CIRRUS_RELEASE != ""
+ script: |
+ apt install s3cmd
+ ./bootstrap
+ s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY put ./rebar3 s3://rebar3
+
+ url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=rebar3"
+ curl -X POST \
+ --data-binary @rebar3 \
+ --header "Authorization: token $GITHUB_TOKEN" \
+ --header "Content-Type: application/octet-stream" \
+ $url_to_upload
+ environment:
+ ACCESS_KEY: ENCRYPTED[86c639224b3cfc11ae5dbd48b13de5ff77dd5c75f1bf1808ddbbb5bc60049f16885b4e2e3a7981376cac562f7a2d176b]
+ SECRET_KEY: ENCRYPTED[189c3b982c2f846193bb34c3de86e0172b8a4c793699f64dc95bb9a1e6bbe83c252c77d37ea1503928aa9b41a3652ca3]
+ GITUB_TOKEN: ENCRYPTED[ff884c4b0a4f2833b6c22c1fd6398879d58634d0f521e7efbd33f045fb785417f24da953cfbdaee563698501691e5970]
+
+
# Windows CI appears broken for now and never passes
#windows_test_task:
# windows_container:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 2833f6d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-language: erlang
-matrix:
- include:
- - os: linux
- otp_release: 18.3
- - os: linux
- otp_release: 19.3
- - os: linux
- otp_release: 20.0
- - os: linux
- otp_release: 21.0
- - os: linux
- otp_release: 22.0
- - os: osx
- language: generic
-before_script:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- ## should eventually use a tap that has previous erlang versions here
- ## as this only uses the latest erlang available via brew
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install erlang; fi
-script: "./bootstrap && ./rebar3 ct"
-branches:
- only:
- - master
- - hex_core
-cache:
- directories:
- - "$HOME/.cache/rebar3/hex/default"
-deploy:
- - provider: releases
- api_key:
- secure: MjloYuaQF3cd3Oab57zqwPDLPqt5MDgBIrRLpXOQwNovr2tnkKd4aJK3QJ3pTxvZievjgl+qIYI1IZyjuRV37nkjAfMw14iig959wi0k8XTJoMdylVxE5X7hk4SiWhX/ycnJx3C28PPw1OitGTF76HAJDMgEelNdoNt+hvjvDEo=
- file: rebar3
- on:
- repo: erlang/rebar3
- tags: true
- - provider: s3
- access_key_id: AKIAJAPYAQEFYCYSNL7Q
- secret_access_key:
- secure: "BUv2KQABv0Q4e8DAVNBRTc/lXHWt27yCN46Fdgo1IrcSSIiP+hq2yXzQcXLbPwkEu6pxUZQtL3mvKbt6l7uw3wFrcRfFAi1PGTITAW8MTmxtwcZIBcHSk3XOzDbkK+fYYcaddszmt7hDzzEFPtmYXiNgnaMIVeynhQLgcCcIRRQ="
- skip_cleanup: true
- local-dir: _build/prod/bin
- bucket: "rebar3-nightly"
- acl: public_read
- on:
- repo: erlang/rebar3
- branch: master
- condition: $TRAVIS_OTP_RELEASE = "17.5"
diff --git a/README.md b/README.md
index 4180a92..8a2168d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Rebar3
-[![Build Status](https://travis-ci.org/erlang/rebar3.svg?branch=master)](https://travis-ci.org/erlang/rebar3) [![Windows build status](https://ci.appveyor.com/api/projects/status/yx4oitd9pvd2kab3?svg=true)](https://ci.appveyor.com/project/TristanSloughter/rebar3)
+[![Build Status](https://api.cirrus-ci.com/github/erlang/rebar3.svg)](https://cirrus-ci.com/github/erlang/rebar3) [![Windows build status](https://ci.appveyor.com/api/projects/status/yx4oitd9pvd2kab3?svg=true)](https://ci.appveyor.com/project/TristanSloughter/rebar3)
1. [What is Rebar3?](#what-is-rebar3)
2. [Why Rebar3?](#why-rebar3)