-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
69 lines (60 loc) · 1.6 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
sudo: required
dist: trusty
language: node_js
node_js:
- '8.2.1'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- openjdk-7-jdk
- lib32stdc++6
- lib32z1
env:
CXX=g++-4.8
before_install:
- sudo dpkg --add-architecture i386
- sudo add-apt-repository ppa:ubuntu-wine/ppa -y
- sudo apt-get update
- sudo apt-get install --no-install-recommends -y wine1.8
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
- sudo apt-get update
- sudo apt-get install --no-install-recommends -y mono-devel ca-certificates-mono
script:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis gh pages"
- cd modules/der-reader
- yarn install
- npm run build
- cd dist
- ls
- git status
- git init
- git add .
- git commit -m "Deploy to Github Pages"
- git status
- git push --force --quiet "https://${GITHUB_API_TOKEN}@github.com/makinacorpus/accessimap-lecteur-der.git" master:gh-pages > /dev/null 2>&1
- cd ../../../electron
- yarn install
- npm run build
- ls $TRAVIS_BUILD_DIR/electron/dist/accessimap*
- cd ../
- 'chmod 700 deploy.sh'
- ./deploy.sh
cache:
yarn: true
directories:
- node_modules
deploy:
provider: releases
api_key: "$GITHUB_API_TOKEN"
file_glob: true
file:
- "$TRAVIS_BUILD_DIR/electron/dist/accessimap*"
skip_cleanup: true
on:
all_branches: true
tags: true