2019-03-05 03:43:53 +03:00
|
|
|
language: nix
|
|
|
|
nix: 2.1.3
|
2018-11-06 07:14:33 +03:00
|
|
|
|
2019-12-11 08:19:07 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.ghc
|
|
|
|
- $HOME/.cabal
|
|
|
|
- $HOME/.stack
|
|
|
|
- $TRAVIS_BUILD_DIR/.stack-work
|
|
|
|
|
2018-03-20 20:16:16 +03:00
|
|
|
before_install:
|
2019-03-05 03:43:53 +03:00
|
|
|
- git lfs pull
|
2019-12-11 10:39:52 +03:00
|
|
|
- sh/travis-install-stack
|
2019-12-11 08:19:07 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
2019-12-11 09:24:19 +03:00
|
|
|
- stack --no-terminal --install-ghc build king --only-dependencies
|
2019-12-11 08:19:07 +03:00
|
|
|
|
2019-12-11 10:46:03 +03:00
|
|
|
# TODO Only do release builds on the `pull` branch?
|
2018-11-07 22:38:59 +03:00
|
|
|
script:
|
2019-12-11 10:39:52 +03:00
|
|
|
- cachix use urbit2
|
|
|
|
- ./sh/cachix || true
|
|
|
|
- make build-fast
|
|
|
|
- make release
|
|
|
|
- sh/ci-tests
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- skip_cleanup: true
|
|
|
|
provider: gcs
|
|
|
|
access_key_id: GOOGTADOPP55X5ZTH3IKAXQW
|
|
|
|
secret_access_key:
|
|
|
|
secure: rSPif0VHX3Q3QpWM9iUt/Z9sicCY8ABuwVFPeT3YUnAAmSXM46PIHKieoGs79kx9IelFyQsM8xS0XWyt4S/haR7VaTJY+zHJjf0AnA1sr5ZIV70t3K0SXzq4+E1ffOZRiC0VmHatPz10wjaIpHxpjcROqQV4M1dBCq2H/rpccIE=
|
|
|
|
bucket: bootstrap.urbit.org
|
|
|
|
local-dir: release/
|
|
|
|
acl: public-read
|
|
|
|
on:
|
|
|
|
condition: "-d release/"
|
|
|
|
repo: urbit/urbit
|
|
|
|
all_branches: true
|