-
Notifications
You must be signed in to change notification settings - Fork 371
/
Copy path.travis.yml
executable file
·32 lines (26 loc) · 1.45 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
dist: xenial # required for Python >= 3.7
language: python
python:
- "3.8"
install: pip install -r requirements-dev.txt
script:
- python test.py
- pip install -r requirements.txt
- pelican content -s publishconf.py -o docs --fatal=warnings
after_success:
- if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_COMMIT_MESSAGE" != "publishing websites" ]]; then
git checkout $TRAVIS_BRANCH;
pelican content -s publishconf.py -o docs;
git add -A;
git commit -m "publishing websites";
git remote add origin-pages https://${GH_TOKEN}@github.com/OpenClassrooms-Student-Center/community.git;
git push origin-pages $TRAVIS_BRANCH;
fi
branches:
only:
- master
env:
global:
- secure: "xuNIN7LAenb/NvNKMIas9JQYgHvGEUy0i4twjqJ5ibO5o5yorbAwjFYiMQ+Sc9ydpDUS05+DU7JdalZlDnpwNULrAKmbFsBcDEX99NsJC++NC9f21BxBkX5m5uflU3Ka1Fky9fIgBZ50gCwB4N2hQnzUdro4tZnGyjh8EpF6gK++4FvYULwHmKszag8fqNMDl8lBw+UefdONyUvLc92AO63QHYFkDaovS8R2N8kH5DMeEBzh+Po9iJSXuRSWHraYln5i0CSEAeNpwWZfiHLxnq1sKn3trI70PYSJ+RnDBoJqZvYjzySgg6991eejEnm5d66nXw0EJLMPD8ncqZlHNFfgWGOysvY67CtDhtKE0LP1ZnJocD9W1kJrDaZb5/ERgY7DPW6JBPyCjj1REj0pF950dJeDua/TT7GPfHtyKM/oOd8cFm2IJKeK35iwJxxiNHTYyGSZLYpKMBmTP0LIIsXcGzUBPZ9mSPSy+nd3FA0kvNPJTDj4XdG0BlwiqvYZEA8Suy/WMXb1eiAVQv0WNmM3lvkwxP0SzJYN5GsZ8YIFqdqGbh5nWeUZlUr0cFVFNheILmU2ud1jBrX59KebAWKJeQUrw1JL3ahtP4PeRH3HUZaixMnYU+31oH7aSRBrIo9kyUtR65EwawKiYqoKmHV3e6DQMEItG1Bhlk6+bhE="
notifications:
webhooks: https://www.travisbuddy.com/