forked from mozilla/nixpkgs-mozilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 922 Bytes
/
.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
language: nix
addons:
ssh_known_hosts: floki.garbas.si
env:
- STDENV=clang
- STDENV=clang36
- STDENV=clang37
- STDENV=clang38
- STDENV=gcc
- STDENV=gcc49
- STDENV=gcc48
script:
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
nix-shell update.nix --pure;
fi
- if [ "$TRAVIS_PULL_REQUEST" != "true" -a "$TRAVIS_BRANCH" = "master" ]; then
nix-build release.nix -A gecko."x86_64-linux"."$STDENV";
mkdir nars/;
nix-push --dest "$PWD/nars/" --force ./result;
fi
before_install:
- openssl aes-256-cbc -K $encrypted_be02022e0814_key -iv $encrypted_be02022e0814_iv -in deploy_rsa.enc -out deploy_rsa -d
before_deploy:
- eval "$(ssh-agent -s)"
- chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa
- ssh-add $TRAVIS_BUILD_DIR/deploy_rsa
deploy:
provider: script
skip_cleanup: true
script: rsync -avh --ignore-existing $TRAVIS_BUILD_DIR/nars/ [email protected]:/var/travis/nixpkgs-mozilla/
on:
branch: master