-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
45 lines (45 loc) · 1.54 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: c
os: linux
services:
- docker
before_install:
- echo 'deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main' >> /etc/apt/sources.list
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
- sudo apt update
- sudo apt install ansible
jobs:
include:
- name: Lint
addons:
apt:
packages:
- yamllint
- python-pip
install:
- pip install ansible-lint
script:
- yamllint roles
- cd scripts && shellcheck *.sh
- name: Documentation (push)
if: branch = '1.x'
addons:
apt:
packages:
- p7zip-full
- libnss3-tools
- wget
install:
- wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64 -O /tmp/mkcert
- sudo mv /tmp/mkcert /usr/local/bin
- sudo chmod +x /usr/local/bin/mkcert
- curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
- /bin/sh contribute/toc.sh
- '[ -z "$(git diff)" ] && [ -z "$( git ls-files . --exclude-standard --others)" ]'
script:
- cd
- git clone https://github.com/codeenigma/wikis2pages.git
- cd wikis2pages
- /bin/sh init.sh https://[email protected]/codeenigma/ce-deploy.git 1.x
- /bin/sh set-current.sh ce-deploy-1.x-travis
- docker exec --user ce-dev --workdir /home/ce-dev/deploy/live.local wikis2pages-hugo hugo
- /bin/sh .travis-push.sh