forked from ournetworks/ournetworks.ca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (59 loc) · 2.53 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: ruby
rvm:
- 2.6.3
before_install:
# Here, we decrypt a passwordless ssh key for acting as a user on the server named "travis"
# See: https://docs.travis-ci.com/user/encrypting-files/#Automated-Encryption
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then openssl aes-256-cbc -K $encrypted_a3d58fa41b45_key -iv $encrypted_a3d58fa41b45_iv -in scripts/id_rsa.enc -out scripts/id_rsa -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then chmod 400 scripts/id_rsa; fi
# Bundler 2.0 support
# See: https://docs.travis-ci.com/user/languages/ruby/#bundler-20
- gem update --system
- gem install bundler
# Install NVM with Dat via npm
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
- nvm install 10.16.3
- npm i -g dat
# Clone/Initialize Dat archive
# - dat $(head -n 1 .well-known/dat) ./_site --exit
before_script:
# Build Jekyll site
- bundle exec jekyll build
addons:
apt:
packages:
- libcurl4-openssl-dev
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- secure: KIHluwSEKJjtUSt8jBzOvjgvzWUcsI/lOSMSY7d6mRIMq30rTnBAiqZ25sf7IX0dEP++fbLidxptcFwi4TNI05GyWY3bEqV9KYJF3T6QRVk4IG1ff+O4b0zWKcmbvax0aV8+yeXEMmKlMd8/b+3AzjbLRMv51aTp9Yz5D/ffjnbmDQFzZibP5E0BlEL1kRbcf+cRv/idclLaslIV3dlNy0wdJAhBLP9FtlDZNgLLwDe8IXjrQU98yeQOgufdJCdnqAzZu/Upo+7yYfGaF0PMyoKSZW5LIRw59NkhumCFNkZOgusPalIWBbkKIlxZXjsPYqj3iJxoWzxismWs7S9FjQuCo6QuDpIW5gvmZWFn4GD3BTTFs4S07KKNI/hRK5tz89IF/WfiT1bGg6pubDMZJfHVAUGgB+zpQmn5mnK5t7JFyJ7PP4RrfPGWBCBCTU9zYIA9r2GnzZn2ISPMEyzpQGN642XHibQ2J8jTKyHlxulru3zh202CiELeo185k7Tm/KCuXr+O5hRTDa/Uc2Y3sn8oOX89DXN68CkgtnweIFv1DnQIuku7GlzA6wzPENIq3Rg6D1BmP3vOs8XZo4BI6xXen4aUAiTEgMoTQC/EK27x8GbzS2940xwrHzpv2EL7Ub8HaLc1e0ILqjXIrWouM+kvKkQeCXqdnFpdOuhZ5UE=
cache:
bundler: true
directories:
- node_modules # NPM packages
- $TRAVIS_BUILD_DIR/tmp/.htmlproofer # HTMLProofer
script:
- travis_retry bundle exec rake test
deploy:
# Cleanup removes keys and build artefacts.
# See: https://docs.travis-ci.com/user/deployment/#Uploading-Files-and-skip_cleanup
skip_cleanup: true
provider: script
script: bash scripts/deploy.sh travis scripts/id_rsa ournetworks.ca
on:
branch:
- master
after_deploy:
# - npm i -g ipfs-deploy garrying/make-relative
# - cd _site
# - echo $DATKEY | dat keys import
# - travis_wait 1 dat sync &> /dev/null || travis_terminate 0
# - rm -fr .dat .well-known
# - make-relative https://ournetworks.ca
# - ipd . -O -C
notifications:
email:
recipients:
on_success: change
on_failure: change