Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 05f93e6

Browse files
committedFeb 21, 2019
Simplify CI due to netlify
1 parent 26eeed0 commit 05f93e6

File tree

4 files changed

+4
-72
lines changed

4 files changed

+4
-72
lines changed
 

‎.travis.yml

-63
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,5 @@
11
language: nix
2-
branches:
3-
only:
4-
- master
5-
- production
6-
7-
before_install:
8-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
9-
openssl aes-256-cbc -K $encrypted_88bda2ae685f_key -iv $encrypted_88bda2ae685f_iv -in deploy_rsa.enc -out deploy_rsa -d;
10-
eval "$(ssh-agent -s)";
11-
chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa;
12-
ssh-add $TRAVIS_BUILD_DIR/deploy_rsa;
13-
fi
142

153
script:
16-
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" ]; then
17-
echo "SITEURL = 'http://weekly.nixos.org'" >> pelicanconf.py;
18-
echo "WITH_FUTURE_DATES = True" >> pelicanconf.py;
19-
fi
204
- nix-build -Q default.nix;
215

22-
after_success:
23-
- env
24-
- git clone git@github.com:NixOS/nixos-weekly.git gh-pages -b gh-pages
25-
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" ]; then
26-
mkdir -p gh-pages/preview;
27-
rm -rf gh-pages/preview/*;
28-
cp -RL result/* gh-pages/preview/;
29-
cd gh-pages;
30-
git add .;
31-
if [[ -n `git diff --cached --exit-code` ]]; then
32-
echo "= git status =============================================";
33-
git status;
34-
echo "= git commit =============================================";
35-
git config user.name 'NixOS Weekly Robot';
36-
git config user.email 'weekly@nixos.org';
37-
git commit -a -m "Preview of '$TRAVIS_COMMIT' commit built by Travis-CI \\#$((TRAVIS_JOB_ID - 1))";
38-
git push git@github.com:NixOS/nixos-weekly.git HEAD:gh-pages;
39-
else
40-
echo "==========================================================";
41-
echo "No changes. Nothing to commit";
42-
echo "==========================================================";
43-
fi
44-
fi;
45-
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "production" ]; then
46-
mv gh-pages/preview tmp-preview;
47-
mv gh-pages/CNAME tmp-CNAME;
48-
rm -rf gh-pages/*;
49-
cp -RL result/* gh-pages/;
50-
mv tmp-preview gh-pages/preview;
51-
mv tmp-CNAME gh-pages/CNAME;
52-
cd gh-pages;
53-
touch .nojekyll;
54-
git add .;
55-
if [[ -n `git diff --cached --exit-code` ]]; then
56-
echo "= git status =============================================";
57-
git status;
58-
echo "= git commit =============================================";
59-
git config user.name "NixOS Weekly Robot";
60-
git config user.email "weekly@nixos.org";
61-
git commit -a -m "Release of $TRAVIS_TAG (commit '$TRAVIS_COMMIT') built by Travis-CI \\#$((TRAVIS_JOB_ID - 1))";
62-
git push git@github.com:NixOS/nixos-weekly.git HEAD:gh-pages;
63-
else
64-
echo "==========================================================";
65-
echo "No changes. Nothing to commit";
66-
echo "==========================================================";
67-
fi
68-
fi;

‎deploy_rsa.enc

-3.17 KB
Binary file not shown.

‎deploy_rsa.pub

-1
This file was deleted.

‎nixpkgs.nix

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
let
2-
fetchTarball = { url, sha256 }@attrs:
3-
if builtins.lessThan builtins.nixVersion "1.12"
4-
then builtins.fetchTarball { inherit url; }
5-
else builtins.fetchTarball attrs;
6-
in import (fetchTarball {
7-
url = "https://github.com/NixOS/nixpkgs/archive/b619e0b016c5c79920aa06b78ccf936e56eaf45d.tar.gz";
8-
sha256 = "1bvnw9dvcbm69s9xbb2npx42zns6zq7jwang8d865pnzb0clf5sv";
1+
# to update: $ nix-prefetch-url --unpack url
2+
import (builtins.fetchTarball {
3+
url = "https://github.com/NixOS/nixpkgs/archive/39e3248141eb2f778ef5adc7643eb36094416974.tar.gz";
4+
sha256 = "17l5fjpkhsr70z6p43k9b1g7flxkvcv3azwqqjsc666s44sgiw9j";
95
}) { config = {}; overlays = []; }

0 commit comments

Comments
 (0)
This repository has been archived.