-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
45 lines (37 loc) · 2.2 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
language: python
dist: xenial
python:
- 3.7
install:
- pip install -r factory/requirements.txt
- sudo apt-get install nodejs
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
before_script:
- git checkout "$TRAVIS_BRANCH"
- rm -f plates/*
- rm -f showcase/*
- rm -rf configs/*
script:
- python factory/plates.py
- python factory/codesnippets.py
- python factory/kitsch.py
- python factory/configs.py
after_success:
# stage assets
- git add -A 'plates/*'
- git add -A 'showcase/*'
- git add -A 'configs/*'
# publish configs
- >
find configs -name 'publish.sh' |
xargs -I{} bash -c
'cd $(dirname {}); git diff --cached --quiet . || (echo {}; bash publish.sh)'
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
# └─ Check if this directory has been changed.
branches:
only:
- master
env:
global:
- secure: "jBip2fJ8WaefWmvcaW2FodYI+T6t20ScizhtXcjpiw16Kn6U+uJsbzNgj/SFJZnY7MyFJhfremDeLplNpW8Fz5vzBsw1ZJM1aoOmYCt16dRl2Snfpe3wHpNLC7DgrJTkYKw4CQITe7ymuJvsOd5PdkOO4fqAjEvi4zibibm4sL9e3SjICf9DAq4+pjGch+VPsaZsuMj0/dvRCupzNLl4KoSohuShSs8qrQlFNS2sJcjjYRZXe1OAOoimeGXLOAZwp6oiGMC6OSzpp6XT4G56lD899chUUUIhfaWrdWK4OKuZacJzosbX8gVcUGmw94uHO4EAyLw8NGCkiRQdDlE3rwrVqAjmgSS/ZSffHFPjo1gSMhVquCgp5DqNRxT61lSetlaKu2L6N2vchpCsDoLCdVOS8OzzzPr8oiCajYtxhWyFacUo1LvLu0GECj2AsOynK2aBSzgJVspW8gHUW8s3uxQmwet9JRVPyptwUuRP8vzHXAah3D9xevfZGbavL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