forked from stoically/temporary-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.06 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
dist: xenial
services:
- xvfb
language: node_js
node_js: "lts/*"
addons:
firefox: latest
script:
- if [[ $TRAVIS_TAG == *"beta"* ]]; then
npm run build:sign;
else
unset WEB_EXT_API_KEY;
unset WEB_EXT_API_SECRET;
npm run build;
fi
after_success: npm run coverage
deploy:
provider: releases
prerelease: true
api_key: $GITHUB_TOKEN
file_glob: true
file: web-ext-artifacts/*
skip_cleanup: true
draft: true
name: $TRAVIS_TAG
condition: $TRAVIS_TAG = *"beta"*
on:
tags: true
after_deploy:
- if [[ $TRAVIS_TAG == *"beta"* ]]; then
git clone https://github.com/stoically/temporary-containers.git;
cd temporary-containers;
git checkout beta-updates;
export BETA_VERSION=$(echo $TRAVIS_TAG | sed "s/^v//");
sed -i -e "s/[0-9]\+\.[0-9]\+\(beta[0-9]\+\)\?/$BETA_VERSION/g" updates.json;
sed -i -e "s/-fx\\.xpi/-an\\+fx\\.xpi/" updates.json;
git commit -am "$TRAVIS_TAG";
git push https://$GITHUB_TOKEN:x-oauth-basic@github.com/stoically/temporary-containers.git/ beta-updates;
fi