Skip to content

Commit

Permalink
Still updating travis...
Browse files Browse the repository at this point in the history
  • Loading branch information
mdartic committed Nov 17, 2017
1 parent fa2d5f6 commit 3240f5a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 21 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ before_install:
- 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*
- 'chmod 700 deploy.sh'
- ./deploy.sh

Expand Down
42 changes: 21 additions & 21 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ git config --global user.email "$COMMITTER_EMAIL"
git config --global user.name "Travis CI"
git config -l

# Build the der reader
cd modules/der-reader
yarn install
npm run build

# Deploy to github page
cd dist
ls
git status
git init
git add -A .
git status
git commit -a -m "Travis #$TRAVIS_BUILD_NUMBER / ${SHA}"
git status
git push --force --quiet "https://${GITHUB_API_TOKEN}@github.com/makinacorpus/accessimap-lecteur-der.git" master:gh-pages > /dev/null 2>&1

# Build electron
cd ../../../electron
yarn install
npm run build
ls $TRAVIS_BUILD_DIR/electron/dist/accessimap*
# # Build the der reader
# cd modules/der-reader
# yarn install
# npm run build

# # Deploy to github page
# cd dist
# ls
# git status
# git init
# git add -A .
# git status
# git commit -a -m "Travis #$TRAVIS_BUILD_NUMBER / ${SHA}"
# git status
# git push --force --quiet "https://${GITHUB_API_TOKEN}@github.com/makinacorpus/accessimap-lecteur-der.git" master:gh-pages > /dev/null 2>&1

# # Build electron
# cd ../../../electron
# yarn install
# npm run build
# ls $TRAVIS_BUILD_DIR/electron/dist/accessimap*

# Say to opbeat there is a new release
curl https://intake.opbeat.com/api/v1/organizations/48eaafd23a8a462184cf7903765ea4a3/apps/b73624b852/releases/ \
Expand Down

0 comments on commit 3240f5a

Please sign in to comment.