Skip to content

Commit

Permalink
feat(travisci): disable travis, it sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Aug 24, 2019
1 parent 4c936d0 commit 0dc51dd
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 20 deletions.
59 changes: 59 additions & 0 deletions .circleci/config.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# https://discuss.circleci.com/t/circleci-2-1-config-overview/26057
version: 2.1

references:
defaults: &defaults
working_directory: ~/repo
environment:
TZ: "/usr/share/zoneinfo/Asia/Hong_Kong"
TERM: xterm

jobs:
build:
<<: *defaults
docker:
- image: circleci/ruby:2.6.3-node-browsers
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
- v1-dependencies-
- run:
name: update bundler
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> "$BASH_ENV"
source $BASH_ENV
gem install bundler
- run:
name: install ruby dependencies
command: bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./vendor/bundle
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run:
name: install node dependencies
command: sudo npm install -g grunt-cli && yarn install --frozen-lockfile
- save_cache:
paths:
- ./node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: generate static files
command: grunt build
- persist_to_workspace:
root: ~/repo
paths:
- Dockerfile
- default.conf
- _site/*

workflows:
build-deploy:
jobs:
- build
1 change: 1 addition & 0 deletions .travis.init.yml → .travis.example.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Travis is slow, I recommend use CircleCI for CI process
sudo: false
language: node_js
cache:
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion _app/_posts/note/2014-06-13-welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Go to the [GitHub](https://github.com/sparanoid/almace-scaffolding) page for dow
- A basic, fully configured Jekyll setup with well-defined [Atom feed](https://github.com/sparanoid/almace-scaffolding/blob/master/_app/feed-atom.xml) and [sitemap](https://github.com/sparanoid/almace-scaffolding/blob/master/_app/sitemap.xml)
- **Almace Scaffolding** ships a sleek responsive theme [Curtana](https://github.com/amsf/amsf-curtana), a variant of [sparanoid.com](https://sparanoid.com/), looking great on any modern browsers
- Every minified page generates only one HTTP request [^1]
- [Tons of configurable settings](https://github.com/sparanoid/almace-scaffolding/blob/master/_config.init.yml) for your posts and site customization
- [Tons of configurable settings](https://github.com/sparanoid/almace-scaffolding/blob/master/_config.example.yml) for your posts and site customization
- Service Worker support for lightning fast experience
- Built with Grunt.js for easy development
- Travis support
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0dc51dd

Please sign in to comment.