forked from eea/eea.exhibit
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
49 lines (42 loc) · 1.61 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
language: python
python: 2.7
sudo: required
services:
- docker
install:
- export GIT_OWNER=${TRAVIS_REPO_SLUG%/*}
- export GIT_NAME=${TRAVIS_REPO_SLUG#*/}
- export GIT_CHANGE_ID=${TRAVIS_PULL_REQUEST#false}
- export GIT_SRC=https://github.com/${TRAVIS_REPO_SLUG}.git
jobs:
include:
- stage: code
env:
- CHECK=jslint4java
script:
- docker run -i --rm -e GIT_BRANCH=$TRAVIS_BRANCH -e GIT_SRC=$GIT_SRC -e GIT_NAME=$GIT_NAME -e GIT_CHANGE_ID=$GIT_CHANGE_ID eeacms/$CHECK
- stage: code
env:
- CHECK=pyflakes
script:
- docker run -i --rm -e GIT_BRANCH=$TRAVIS_BRANCH -e GIT_SRC=$GIT_SRC -e GIT_NAME=$GIT_NAME -e GIT_CHANGE_ID=$GIT_CHANGE_ID eeacms/$CHECK
- stage: code
env:
- CHECK=i18ndude
script:
- docker run -i --rm -e GIT_BRANCH=$TRAVIS_BRANCH -e GIT_SRC=$GIT_SRC -e GIT_NAME=$GIT_NAME -e GIT_CHANGE_ID=$GIT_CHANGE_ID eeacms/$CHECK
- stage: code
env:
- CHECK=zptlint
script:
- docker run -i --rm -e GIT_BRANCH=$TRAVIS_BRANCH -e GIT_SRC=$GIT_SRC -e GIT_NAME=$GIT_NAME -e GIT_CHANGE_ID=$GIT_CHANGE_ID eeacms/$CHECK
- stage: test
env:
- PLONE=4
script:
- docker run -i --rm -e GIT_BRANCH="$TRAVIS_BRANCH" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" -e GIT_CHANGE_ID="$GIT_CHANGE_ID" eeacms/plone-test:$PLONE -s $GIT_NAME
# - stage: test
# env:
# - PLONE=5
# script:
# - docker run -i --rm -e GIT_BRANCH="$TRAVIS_BRANCH" -e ADDONS="$GIT_NAME" -e DEVELOP="src/$GIT_NAME" -e GIT_CHANGE_ID="$GIT_CHANGE_ID" eeacms/plone-test:$PLONE -s $GIT_NAME