-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
158 lines (147 loc) · 4.15 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
language: node_js
#python:
# - "3.6"
node_js:
- "16"
addons:
apt:
#update: true
packages:
#- python3
#- python3-pip
- genisoimage
- gpsbabel
cache:
directories:
- ./CACHE
branches:
only:
- master
- beta
#- develop
- travisci
before_install:
- node -v
- printenv
- ls -al
- cd src
- npm install
- cd ..
- pip install --user configparser pandas pillow
#- pip3 install --user configparser pandas pillow
- ls -al
install:
- ls -al
############################################
- ./bin/make.sh --install-channel=$TRAVIS_BRANCH --install --cache
############################################
- ls -al
before_script:
- ls -al
script:
- ls -al
- TYP='csv gpx'
############################################
- CNX='CNX_GATSO_FR'
- RLS='FR:gatso:'
- ./bin/make.sh --build=hasCache --run --build="$TYP" --build="$CNX" --release-prefix="$RLS"
- ls -lR ./RELEASES
############################################
- CNX='CNX_GATSO_FR CNX_GATSO_EU'
- RLS='EU:gatso:'
- ./bin/make.sh --build=hasCache --run --build="$TYP" --build="$CNX" --release-prefix="$RLS"
- ls -lR ./RELEASES
############################################
- CNX='CNX_FUEL_FR'
- RLS='FR:fuel:'
- ./bin/make.sh --build=hasCache --run --build="$TYP" --build="$CNX" --release-prefix="$RLS"
- ls -lR ./RELEASES
############################################
- CNX='CNX_GATSO_FR CNX_FUEL_FR'
- RLS='FR:gatso-fuel:'
- ./bin/make.sh --build=hasCache --run --build="$TYP" --build="$CNX" --release-prefix="$RLS"
- ls -lR ./RELEASES
############################################
- ./bin/make.sh --build=hasCache --run --image
- ls -lR ./RELEASES
############################################
- ls -al
before_deploy:
- ls -al
############################################
- export GATSO_UPDATE_MAX=`date -d @$(cat ./BUILD/version.txt | sort -n | tail -1) +%Y-%m-%d`
- export RELEASE_DESCRIPTION=`cat ./BUILD/manifest.txt`
- export RELEASE_NAME="${TAG_PREFIX}${TRAVIS_BRANCH}"
############################################
- echo "TRAVIS_TAG=$TRAVIS_TAG;"
- echo "TAG_PREFIX=$TAG_PREFIX;"
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH;"
- echo "GATSO_UPDATE_MAX=$GATSO_UPDATE_MAX;"
- "[[ $TRAVIS_TAG ]] || export TRAVIS_TAG=\"${TAG_PREFIX}${TRAVIS_BRANCH}.${GATSO_UPDATE_MAX}\""
- echo "TRAVIS_TAG=$TRAVIS_TAG"
############################################
- ./bin/make.sh --uninstall
############################################
#- ls -al
############################################
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
#- git tag -l | grep "^${RELEASE_NAME}\." | tail -n +2 | xargs -n 1 -I_tag h -c 'echo "untag _tag" ; git tag -d _tag ; git push --delete origin _tag'
- git tag --force "$TRAVIS_TAG" $TRAVIS_COMMIT
############################################
- ls -hlR ./RELEASES
############################################
- ls -al
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
name: "$RELEASE_NAME"
#body: "$RELEASE_DESCRIPTION" # https://github.com/travis-ci/dpl/issues/155
overwrite: true
prerelease: true
skip_cleanup: true
file_glob: true
file: ./RELEASES/*.zip
on:
tags: false
branch:
- beta
- travisci
- provider: releases
api_key: $GITHUB_TOKEN
name: "$RELEASE_NAME"
#body: "$RELEASE_DESCRIPTION" # https://github.com/travis-ci/dpl/issues/155
overwrite: true
prerelease: false
skip_cleanup: true
file_glob: true
file: ./RELEASES/**/*
on:
tags: false
branch:
- master
- provider: releases
api_key: $GITHUB_TOKEN
name: "$TRAVIS_TAG"
#body: "$RELEASE_DESCRIPTION" # https://github.com/travis-ci/dpl/issues/155
overwrite: true
prerelease: false
skip_cleanup: true
file_glob: false
file:
- ./RELEASES/all_files.zip
- ./RELEASES/*.iso.zip
on:
tags: true
- provider: pages
github-token: $GITHUB_TOKEN
skip-cleanup: true
keep-history: false
#target-branch: $TRAVIS_BRANCH
on:
branch:
- master
after_deploy:
- ls -al
after_script:
- ls -al