This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
62 lines (53 loc) · 1.94 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
dist: xenial
language: bash
branches:
only:
- master
env:
global:
- CONDA=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
before_install:
- sudo apt-get update
- sudo apt-get --yes --force-yes install texlive-full
- curl $CONDA > conda.sh
- bash conda.sh -b -p $HOME/conda
- rm conda.sh
- export PATH=$HOME/conda/bin:$PATH
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install setuptools # hack against the conda "RemoveError" in update
- conda update conda
- conda info -a # debugging
- conda env create -v -f environment.yml -p env
- source activate ./env
- curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
- sudo bash nodesource_setup.sh
- sudo apt-get install nodejs
- sudo npm install --unsafe-perm -g decktape
# easiest way to get the dependencies of chromium right is to (re-)install it
- sudo apt-get install chromium-browser
install:
- echo "fetching calendar ..."
- mkdir -p Calendrier
- python utils/calendrier/fetch.py > Calendrier/calendrier.txt
- echo "install started ..."
- ./build
- cd quizz && ./build && cd ..
- cd Enquete/2019 && unzip report-2019-2020-EC1.zip && cd ../..
- cd Enquete/2019 && unzip report-2019-2020-EC2.zip && cd ../..
- cd Enquete/2020 && ./build && unzip report-2020-2021-EC1.zip && cd ../..
- cd Enquete/2020 && unzip report-2020-2021-EC2.zip && cd ../..
# hack for Travis CI (encoding issue ?). Yes but pdf generation broken again
# I disable it for the moment
# - cd Extra/Comit* && ./build --pdf && cp -rf output/* ../../output/ && cd ../..
# now prepare deployment to gh-pages
- rm -rf env
- mv .gitignore .gitignore.bak
- mv Enquete/2019/.gitignore Enquete/2019/.gitignore.bak
- mv Enquete/2020/.gitignore Enquete/2020/.gitignore.bak
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
branch: master